XmlToken enum
Enumerates all token types that an XmlParser can encounter during XML parsing.
Example
if (parser.getCurrentToken() == XmlToken.TEXT) {
print('Text: ${parser.getText()}');
}
Values
- START_ELEMENT → const XmlToken
-
Start of an XML element (
<tag>). - END_ELEMENT → const XmlToken
-
End of an XML element (
</tag>). - TEXT → const XmlToken
-
Text content between elements.
- CDATA → const XmlToken
-
CDATA section (
<![CDATA[...]]>). - PROCESSING_INSTRUCTION → const XmlToken
-
Processing instruction (
<?...?>). - COMMENT → const XmlToken
-
XML comment (
<!-- ... -->). - ENTITY_REFERENCE → const XmlToken
-
Entity reference.
- END_DOCUMENT → const XmlToken
-
End of document.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited