XmlNode class abstract
The base class for all XML nodes.
- Implementers
- Annotations
-
- @immutable
Constructors
- XmlNode()
-
const
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toFormattedString(
{int nestingLevel = 0, String indent = '\t'}) → String - Returns this node as a formatted string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
from(
String string, {bool parseCharacterEntities = true, bool parseComments = false, bool trimWhitespace = true, bool parseCdataAsText = true, List< Type> ? returnNodesOfType}) → XmlNode? -
Returns the first node found in
string
.string
must not benull
. -
fromUri(
String uri, {bool parseCharacterEntities = true, bool parseComments = false, bool trimWhitespace = true, bool parseCdataAsText = true, List< Type> ? returnNodesOfType, int start = 0, int? stop}) → Future -
Retrieves a document from
uri
, parses it, and returns all identified XML nodes in a list. -
parseString(
String string, {bool parseCharacterEntities = true, bool parseComments = false, bool trimWhitespace = true, bool parseCdataAsText = true, List< Type> ? returnNodesOfType, int start = 0, int? stop}) → List<XmlNode> ? -
Returns a list of every root level node found in
string
.string
must not benull
.