SimpleXML.Node

This struct represents a node in the tree

Members

Aliases

opCat
alias opCat = add
opCatAssign
alias opCatAssign = add

Functions

add
Node add(T[] name, T[] value)

Adds a new element to this element.

add
Node add(SimpleXML.Element element)

Adds a new element to this element.

add
Node add(Attribute attribute)

Adds a new attribute to this element.

name
T[] name()

Gets the name of the node.

name
T[] name(T[] name)

Sets the name of the node.

opApply
int opApply(int delegate(ref Node) dg)

Iterates over the children of the node

opIndex
Node opIndex(T[] name)

Returns the first child element of the node, which matches the given name.

opIndexAssign
void opIndexAssign(T2 value, T[] name)

Finds the first child element of this element with the given name and sets it's value to the given value. If the element could not be found it's created and the give value is set.

toString
T[] toString()

Returns a string representation of this object which is the value of the node

value
T[] value()

Gets the value of the node.

value
T[] value(T[] value)

Sets the value of the node.

Static functions

opCall
Node opCall(Document!(T).Node node)

Creates a new Node.

Structs

AttributeProxy
struct AttributeProxy

This struct represents an attribute proxy. This is the type that is returned when calling Node.attribute and lets you perform operations on attributes.

Variables

attribute
AttributeProxy attribute;

This is an attribute proxy allowing to perform attribute operations on all the attributes in this element.

Meta