Implemented types
Implementers
Available extensions
Properties
ancestorElements
→ Iterable <XmlElement >
Return a lazy Iterable of the ancestor XmlElement nodes of this
node (parent, grandparent, ...) in reverse document order.
no setter inherited
ancestors
→ Iterable <XmlNode >
Return a lazy Iterable of the ancestors of this node (parent,
grandparent, ...) in reverse document order.
no setter inherited
attributes
→ List <XmlAttribute >
Return the attribute nodes of this node in document order.
no setter inherited
childElements
→ Iterable <XmlElement >
Return an Iterable over the XmlElement children of this node.
no setter inherited
children
→ List <XmlNode >
Return the direct children of this node in document order.
no setter inherited
depth
→ int
Return the depth of this node in its tree, a root node has depth 0.
no setter inherited
descendantElements
→ Iterable <XmlElement >
Return a lazy Iterable of the descendants XmlElement nodes of this
node (attributes, children, grandchildren, ...) in document order.
no setter inherited
descendants
→ Iterable <XmlNode >
Return a lazy Iterable of the descendants of this node (attributes,
children, grandchildren, ...) in document order.
no setter inherited
document
→ XmlDocument ?
Return the document that contains this node, or null
if the node is
not part of a document.
no setter inherited
firstChild
→ XmlNode ?
Return the first child of this node, or null
if there are no children.
no setter inherited
firstElementChild
→ XmlElement ?
Return the first child XmlElement , or null
if there are none.
no setter inherited
following
→ Iterable <XmlNode >
Return a lazy Iterable of the nodes following this node in document
order.
no setter inherited
followingElements
→ Iterable <XmlElement >
Return a lazy Iterable of the XmlElement nodes following this node
in document order.
no setter inherited
hashCode
→ int
The hash code for this object.
no setter inherited
hasParent
→ bool
Test whether the node has a parent or not.
no setter inherited
innerText
↔ String
Return the concatenated text of this node and all its descendants.
getter/setter pair inherited
innerXml
↔ String
Return the markup representing the child nodes of this node.
getter/setter pair inherited
lastChild
→ XmlNode ?
Return the last child of this node, or null
if there are no children.
no setter inherited
lastElementChild
→ XmlElement ?
Return the last child XmlElement , or null
if there are none.
no setter inherited
nextElementSibling
→ XmlElement ?
Return the next element sibling of this node, or null
.
no setter inherited
nextSibling
→ XmlNode ?
Return the next sibling of this node, or null
.
no setter inherited
nodes
→ Iterable <XmlNode >
Return a lazy Iterable of the direct descendants of this XmlNode
(attributes, children) in document order.
no setter inherited
outerXml
↔ String
Return the markup representing this node and all its child nodes.
getter/setter pair inherited
parent
→ XmlNode ?
Return the parent node of this node, or null
if there is none.
no setter inherited
parentElement
→ XmlElement ?
Return the first parent of this node that is of type XmlElement , or
null
if there is none.
no setter inherited
preceding
→ Iterable <XmlNode >
Return a lazy Iterable of the nodes preceding this node in document
order.
no setter inherited
precedingElements
→ Iterable <XmlElement >
Return a lazy Iterable of the XmlElement nodes preceding this node in
document order.
no setter inherited
previousElementSibling
→ XmlElement ?
Return the previous element sibling of this node, or null
.
no setter inherited
previousSibling
→ XmlNode ?
Return the previous sibling of this node, or null
.
no setter inherited
root
→ XmlNode
Return the root of the tree in which this node is found, whether that's
a document or another element.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
siblingElements
→ Iterable <XmlNode >
Returns an Iterable over the XmlElement siblings of this node. If the
node has no parent or no siblings, return an empty collection.
no setter inherited
siblings
→ Iterable <XmlNode >
Returns an Iterable over the siblings of this node. If the node has
no parent or no siblings, return a collection with just this node.
no setter inherited
source
→ XmlSourceRange
no setter inherited
text
→ String
Return the concatenated text of this node and all its descendants, for
XmlData nodes return the textual value of the node.
no setter inherited
Methods
accept <T > (XmlVisitor <T > visitor )
→ T
Dispatch the invocation depending on this type to the visitor
.
inherited
attachParent (XmlNode parent )
→ void
Internal helper to attach a child to this parent, do not call directly.
inherited
copy ()
→ XmlNode
Return a copy of this node and all its children.
inherited
detachParent (XmlNode parent )
→ void
Internal helper to detach a child from its parent, do not call directly.
inherited
findAllElements (String name , {String ? namespace })
→ Iterable <XmlElement >
Return a lazy Iterable of the recursive child elements in document
order with the specified tag name
.
inherited
findElements (String name , {String ? namespace })
→ Iterable <XmlElement >
Return a lazy Iterable of the direct child elements in document
order with the specified tag name
and namespace
.
inherited
getAttribute (String name , {String ? namespace })
→ String ?
Return the attribute value with the given name
, or null
.
inherited
getAttributeNode (String name , {String ? namespace })
→ XmlAttribute ?
Return the attribute node with the given name
, or null
.
inherited
getAttributeNodeStrictQualified (String qualifiedName )
→ XmlAttribute ?
inherited
getAttributeStrictQualified (String qualifiedName )
→ String ?
inherited
getElement (String name , {String ? namespace })
→ XmlElement ?
Return the first child element with the given name
, or null
.
inherited
matchNaturalElementChild <Z > ({required Z text (XmlTextNaturalImpl ), required Z element (XmlElementNaturalImpl ), required Z processing (XmlProcessingNaturalImpl ), required Z cdata (XmlCDATANaturalImpl ) })
→ Z
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAttribute (String name , {String ? namespace })
→ void
Removes the attribute value with the given fully qualified name
.
inherited
replace (XmlNode other )
→ void
Replace this node with other
.
inherited
setAttribute (String name , String ? value , {String ? namespace })
→ void
Set the attribute value with the given fully qualified name
to value
.
If an attribute with the name already exist, its value is updated.
If the value is null
, the attribute is removed.
inherited
toString ()
→ String
A string representation of this object.
inherited
toXmlString ({bool pretty = false , XmlEntityMapping ? entityMapping , int ? level , String ? indent , String ? newLine , Predicate<XmlNode > ? preserveWhitespace , Predicate<XmlAttribute > ? indentAttribute , Comparator <XmlAttribute > ? sortAttributes , Predicate<XmlNode > ? spaceBeforeSelfClose })
→ String
Return an XML string of this object.
inherited