Element

Constructors

this
this(NodeType type)
Undocumented in source.
this
this(string name, NodeType type)
Undocumented in source.

Members

Functions

appendAttribute
void appendAttribute(Attribute attribute)
Undocumented in source. Be warned that the author may not have intended to support it.
appendNode
void appendNode(Element child)
Undocumented in source. Be warned that the author may not have intended to support it.
contents
string contents()
Undocumented in source. Be warned that the author may not have intended to support it.
contents
void contents(string text)
Undocumented in source. Be warned that the author may not have intended to support it.
document
Document document()
Undocumented in source. Be warned that the author may not have intended to support it.
firstAttribute
Attribute firstAttribute(string name, bool caseSensitive)
Undocumented in source. Be warned that the author may not have intended to support it.
firstNode
Element firstNode(string name, string xmlns, bool caseSensitive)
Undocumented in source. Be warned that the author may not have intended to support it.
getQualifiedName
string getQualifiedName()

Returns the fully qualified name of this element. This will be the same as the value returned from {@link #getName}if this element has no namespace attached to this element or an expression of the form <pre> getNamespacePrefix() + &quot;:&quot; + getName() </pre> will be returned.

getText
string getText()

<p> Returns the text of this node. </p>

insertAttribute
void insertAttribute(Attribute where, Attribute attribute)
Undocumented in source. Be warned that the author may not have intended to support it.
insertNode
void insertNode(Element where, Element child)
Undocumented in source. Be warned that the author may not have intended to support it.
lastAttribute
Attribute lastAttribute(string name, bool caseSensitive)
Undocumented in source. Be warned that the author may not have intended to support it.
lastNode
Element lastNode(string name, string xmlns, bool caseSensitive)
Undocumented in source. Be warned that the author may not have intended to support it.
lookupXmlns
void lookupXmlns(char[] xmlns, char[] prefix)
Undocumented in source. Be warned that the author may not have intended to support it.
namespacePrefix
string namespacePrefix()

Returns the fully qualified name of this element. This will be the same as the value returned from {@link #getName}if this element has no namespace attached to this element or an expression of the form <pre> getNamespacePrefix() + &quot;:&quot; + getName() </pre> will be returned.

namespacePrefix
void namespacePrefix(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
nextSibling
Element nextSibling(string name, string xmlns, bool caseSensitive)
Undocumented in source. Be warned that the author may not have intended to support it.
prependAttribute
void prependAttribute(Attribute attribute)
Undocumented in source. Be warned that the author may not have intended to support it.
prependNode
void prependNode(Element child)
Undocumented in source. Be warned that the author may not have intended to support it.
previousSibling
Element previousSibling(string name, string xmlns, bool caseSensitive)
Undocumented in source. Be warned that the author may not have intended to support it.
removeAllAttributes
void removeAllAttributes()
Undocumented in source. Be warned that the author may not have intended to support it.
removeAllNodes
void removeAllNodes()
Undocumented in source. Be warned that the author may not have intended to support it.
removeAttribute
void removeAttribute(Attribute where)
Undocumented in source. Be warned that the author may not have intended to support it.
removeFirstAttribute
void removeFirstAttribute()
Undocumented in source. Be warned that the author may not have intended to support it.
removeFirstNode
void removeFirstNode()
Undocumented in source. Be warned that the author may not have intended to support it.
removeLastAttribute
void removeLastAttribute()
Undocumented in source. Be warned that the author may not have intended to support it.
removeLastNode
void removeLastNode()
Undocumented in source. Be warned that the author may not have intended to support it.
removeNode
void removeNode(Element where)
Undocumented in source. Be warned that the author may not have intended to support it.
setText
void setText(string text)

<p> Sets the text data of this node or this method will throw an <code>UnsupportedOperationException</code> if it is read-only. </p>

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
validate
bool validate()
Undocumented in source. Be warned that the author may not have intended to support it.
xmlns
string xmlns()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

m_contents
string m_contents;
Undocumented in source.
m_first_attribute
Attribute m_first_attribute;
Undocumented in source.
m_first_node
Element m_first_node;
Undocumented in source.
m_last_attribute
Attribute m_last_attribute;
Undocumented in source.
m_last_node
Element m_last_node;
Undocumented in source.
m_next_sibling
Element m_next_sibling;
Undocumented in source.
m_prefix
string m_prefix;
Undocumented in source.
m_prev_sibling
Element m_prev_sibling;
Undocumented in source.
m_value
string m_value;
Undocumented in source.
m_xmlns
string m_xmlns;
Undocumented in source.

Inherited Members

From Node

m_type
NodeType m_type;
Undocumented in source.
m_name
string m_name;
Undocumented in source.
m_parent
Element m_parent;
Undocumented in source.
getType
NodeType getType()

Returns the code according to the type of node. This makes processing nodes polymorphically much easier as the switch statement can be used instead of multiple if (instanceof) statements.

getName
string getName()

<p> <code>getName</code> returns the name of this node. This is the XML local name of the element, attribute, entity or processing instruction. For CDATA and Text nodes this method will return null. </p>

setName
void setName(string name)

<p> Sets the text data of this node or this method will throw an <code>UnsupportedOperationException</code> if it is read-only. </p>

getParent
Element getParent()

<p> <code>getParent</code> returns the parent <code>Element</code> if this node supports the parent relationship or null if it is the root element or does not support the parent relationship. </p>

setParent
void setParent(Element parent)

<p> <code>setParent</code> sets the parent relationship of this node if the parent relationship is supported or does nothing if the parent relationship is not supported. </p>

Meta