XmlParserUtils class

xml解析工具

Constructors

XmlParserUtils()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAttrValue({required XmlElement element, required String nodePath, required String attributeName}) String
获取属性值 element XmlElement nodePath 节点路径 eg. root->node1->node2->node3 attributeName 元素属性名
getElement({required XmlElement element, required String nodePath}) → XmlElement?
获取节点元素值 element XmlElement nodePath 节点路径 eg. root->node1->node2->node3
getElementValue({required XmlElement element, required String nodePath}) String
获取节点元素值 element XmlElement nodePath 节点路径 eg. root->node1->node2->node3
getRootElement({required String xml}) → XmlElement?
获取xml节点 xml xml内容 nodePath 节点路径 eg. root->node1->node2->node3
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance XmlParserUtils
no setter