XmlHasAttributes mixin

Mixin for nodes with attributes.

Implemented types
Mixin applications
Available extensions

Properties

ancestorElements Iterable<XmlElement>

Available on XmlNode, provided by the XmlAncestorsExtension extension

Return a lazy Iterable of the ancestor XmlElement nodes of this node (parent, grandparent, ...) in reverse document order.
no setter
ancestors Iterable<XmlNode>

Available on XmlNode, provided by the XmlAncestorsExtension extension

Return a lazy Iterable of the ancestors of this node (parent, grandparent, ...) in reverse document order.
no setter
attributes → XmlNodeList<XmlAttribute>
Return the attribute nodes of this node in document order.
final
childElements Iterable<XmlElement>
Return an Iterable over the XmlElement children of this node.
no setterinherited
children List<XmlNode>
Return the direct children of this node in document order.
no setterinherited
depth int

Available on XmlNode, provided by the XmlParentExtension extension

Return the depth of this node in its tree, a root node has depth 0.
no setter
descendantElements Iterable<XmlElement>

Available on XmlNode, provided by the XmlDescendantsExtension extension

Return a lazy Iterable of the descendants XmlElement nodes of this node (attributes, children, grandchildren, ...) in document order.
no setter
descendants Iterable<XmlNode>

Available on XmlNode, provided by the XmlDescendantsExtension extension

Return a lazy Iterable of the descendants of this node (attributes, children, grandchildren, ...) in document order.
no setter
document XmlDocument?

Available on XmlNode, provided by the XmlParentExtension extension

Return the document that contains this node, or null if the node is not part of a document.
no setter
firstChild XmlNode?
Return the first child of this node, or null if there are no children.
no setterinherited
firstElementChild XmlElement?
Return the first child XmlElement, or null if there are none.
no setterinherited
following Iterable<XmlNode>

Available on XmlNode, provided by the XmlFollowingExtension extension

Return a lazy Iterable of the nodes following this node in document order.
no setter
followingElements Iterable<XmlElement>

Available on XmlNode, provided by the XmlFollowingExtension extension

Return a lazy Iterable of the XmlElement nodes following this node in document order.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasParent bool
Test whether the node has a parent or not.
no setterinherited
innerText String

Available on XmlNode, provided by the XmlStringExtension extension

Return the concatenated text value its descendants.
getter/setter pair
innerXml String

Available on XmlNode, provided by the XmlStringExtension extension

Return the markup representing the child nodes of this node.
getter/setter pair
lastChild XmlNode?
Return the last child of this node, or null if there are no children.
no setterinherited
lastElementChild XmlElement?
Return the last child XmlElement, or null if there are none.
no setterinherited
nextElementSibling XmlElement?

Available on XmlNode, provided by the XmlSiblingExtension extension

Return the next element sibling of this node, or null.
no setter
nextSibling XmlNode?

Available on XmlNode, provided by the XmlSiblingExtension extension

Return the next sibling of this node, or null.
no setter
nodes Iterable<XmlNode>

Available on XmlNode, provided by the XmlNodesExtension extension

Return a lazy Iterable of the direct descendants of this XmlNode (attributes, children) in document order.
no setter
nodeType XmlNodeType
Return the node type of this node.
no setterinherited
outerXml String

Available on XmlNode, provided by the XmlStringExtension extension

Return the markup representing this node and all its child nodes.
getter/setter pair
parent XmlNode?
Return the parent node of this node, or null if there is none.
no setterinherited
parentElement XmlElement?

Available on XmlNode, provided by the XmlParentExtension extension

Return the first parent of this node that is of type XmlElement, or null if there is none.
no setter
preceding Iterable<XmlNode>

Available on XmlNode, provided by the XmlPrecedingExtension extension

Return a lazy Iterable of the nodes preceding this node in document order.
no setter
precedingElements Iterable<XmlElement>

Available on XmlNode, provided by the XmlPrecedingExtension extension

Return a lazy Iterable of the XmlElement nodes preceding this node in document order.
no setter
previousElementSibling XmlElement?

Available on XmlNode, provided by the XmlSiblingExtension extension

Return the previous element sibling of this node, or null.
no setter
previousSibling XmlNode?

Available on XmlNode, provided by the XmlSiblingExtension extension

Return the previous sibling of this node, or null.
no setter
root XmlNode

Available on XmlNode, provided by the XmlParentExtension extension

Return the root of the tree in which this node is found, whether that's a document or another element.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
siblingElements List<XmlElement>

Available on XmlNode, provided by the XmlSiblingExtension extension

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
siblings List<XmlNode>

Available on XmlNode, provided by the XmlSiblingExtension extension

Returns a List of the siblings of this node. Throws an XmlParentException if the node has no parent.
no setter
text String
Returns the concatenated text of this node or its descendants, for text, CDATA, and comment nodes return the textual value of the node.
no setterinherited
value String?
Returns the value of the node, or null.
no setterinherited

Methods

accept(XmlVisitor visitor) → void
Dispatch the invocation depending on this type to the visitor.
inherited
attachParent(covariant XmlNode parent) → void
Internal helper to attach a child to this parent, do not call directly.
inherited
compareNodePosition(XmlNode other) int

Available on XmlNode, provided by the XmlComparisonExtension extension

Compares the position of this node and other.
contains(XmlNode other) bool

Available on XmlNode, provided by the XmlComparisonExtension extension

Test whether other is this node or contained in this node.
copy() XmlNode
Return a copy of this node and all its children.
inherited
detachParent(covariant XmlNode parent) → void
Internal helper to detach a child from its parent, do not call directly.
inherited
findAllElements(String name, {String? namespace}) Iterable<XmlElement>

Available on XmlNode, provided by the XmlFindExtension extension

Return a lazy Iterable of the recursive child elements in document order with the specified tag name.
findElements(String name, {String? namespace}) Iterable<XmlElement>

Available on XmlNode, provided by the XmlFindExtension extension

Return a lazy Iterable of the direct child elements in document order with the specified tag name and namespace.
getAttribute(String name, {String? namespace}) String?
Return the attribute value with the given name, or null.
getAttributeNode(String name, {String? namespace}) XmlAttribute?
Return the attribute node with the given name, or null.
getElement(String name, {String? namespace}) XmlElement?
Return the first child element with the given name, or null.
inherited
isEqualNode(XmlNode other) bool

Available on XmlNode, provided by the XmlComparisonExtension extension

Tests whether this node is equal to other.
normalize({Predicate<XmlText>? collapseWhitespace, bool? collapseAllWhitespace, Predicate<XmlText>? normalizeNewline, bool? normalizeAllNewline, Predicate<XmlText>? trimWhitespace, bool? trimAllWhitespace}) → void

Available on XmlNode, provided by the XmlNormalizerExtension extension

Puts all child nodes into a "normalized" form, that is
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove() → void

Available on XmlNode, provided by the XmlMutatorExtension extension

Remove this node from parent.
removeAttribute(String name, {String? namespace}) → void
Removes the attribute value with the given fully qualified name.
inherited
replace(XmlNode other) → void

Available on XmlNode, provided by the XmlMutatorExtension extension

Replace this node with other.
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.
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
xpath(String expression, {Map<String, XPathValue> variables = const {}, Map<String, XPathFunction> functions = const {}}) Iterable<XmlNode>

Available on XmlNode, provided by the XPathExtension extension

Returns an iterable over the nodes matching the provided XPath expression.
xpathEvaluate(String expression, {Map<String, XPathValue> variables = const {}, Map<String, XPathFunction> functions = const {}}) XPathValue

Available on XmlNode, provided by the XPathExtension extension

Returns the value resulting from evaluating the given XPath expression.
xpathGenerate({String? byId}) String

Available on XmlNode, provided by the XPathGenerator extension

Returns an XPath string that can be used to query for this XmlNode.

Operators

operator ==(Object other) bool
The equality operator.
inherited