XmlNode class

Constructors

XmlNode({required XmlDocument document, required int start})

Properties

beginElement String
get begin element of this node
no setter
detail XmlNodeDetail
node detail info
no setter
document XmlDocument
reference of document
getter/setter pair
endElement String
get ending element of this node
no setter
hashCode int
The hash code for this object.
no setterinherited
innerValue String
no getter
innerXML String
Get node inner XML String
getter/setter pair
mounted bool
is this node mounted
getter/setter pair
name String
get node name include namespace
no setter
outerXML String
return XML including begin element and ending element
no setter
parent XmlNode?
get the parent node of this node
no setter
removed bool
is this node removed
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start int
the index of this node first character in xml document
getter/setter pair
type XmlElementType
get node type
no setter
value String
decoded innerXML
no setter

Methods

addAttribute(String key, String value) XmlAttribute?
add a new attribute
containsAttribute(String key) bool
is this node has attribute named key
copy() XmlNodeInstance
create a XmlNodeInstance holding of this node's outerXML
cut() XmlNodeInstance
create a XmlNodeInstance holding of this node's outerXML and remove origin node
findAncestor({XmlElementType? type, bool selector(XmlNode node)?}) XmlNode?
find node ancestor node
getAttribute(String key) String?
directly get node attribute value
getAttributeNode(String key) XmlAttribute?
NOTICE XmlAttribute should not be cached
getAttributes() Map<String, String>
get node all attributes as map
into({XmlElementType? type, bool selector(XmlNode node)?}) XmlNode?
Find next inner node
mount() XmlNode
start updating node from document
next({XmlElementType? type, bool selector(XmlNode node)?}) XmlNode?
Find next parallel node
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove() → void
remove this node from document
toString() String
A string representation of this object.
inherited
unmount() → void
stop updating node from document

Operators

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

Static Methods

create(String name) XmlNodeInstance
create a XmlNodeInstance holding new node xml string you need to paste it