XmlReader class

Constructors

XmlReader(Stream<String> inputStream)

Properties

AttributeCount → int
no setter
hashCode → int
The hash code for this object.
no setterinherited
IsEmptyElement → bool
no setter
LocalName → String
no setter
Name → String
no setter
NamespaceURI → String?
no setter
NodeType → XmlNodeType?
no setter
Prefix → String?
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
Value → String
The text value of the current node (empty for non-text nodes), like .NET XmlReader.Value.
no setter

Methods

GetAttribute(String attributeName) → String?
GetAttributeWithNamespace(String attributeName, String namespace) → String?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
Read() → Future<bool>
ReadInnerXml() → Future<String>
Reads all the content of the current element, including markup, as a string, like .NET XmlReader.ReadInnerXml. The reader is left on the node after the element's end tag. Returns "" when not positioned on an element.
ReadOuterXml() → Future<String>
Reads the current element, including its own markup, as a string, like .NET XmlReader.ReadOuterXml. The reader is left on the node after the element's end tag. Returns "" when not positioned on an element.
ReadString() → Future<String>
ReadSubtree() → Future<XmlReader>
Returns a new reader over the current element and all its descendants, like .NET XmlReader.ReadSubtree. This reader is left on the element's end tag (or on the element itself when it is empty). The returned reader starts before the element: its first Read() moves to it.
ReadToDescendant(String localName, String namespaceUri) → Future<bool>
Advances to the next descendant element with the given local name and namespace URI, like .NET XmlReader.ReadToDescendant. Returns false (and leaves the reader on the current element's end tag) when there is none.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

Create(Stream<List<int>> inputStream) → Future<XmlReader>