XMLReader functions
XMLReader
&reftitle.intro;
The XMLReader extension is an XML Pull parser. The reader acts as a
cursor going forward on the document stream and stopping at each node
on the way.
&reference.xmlreader.configure;
&reftitle.classes;
XMLReader
&reftitle.methods;
- Close the XMLReader input
- Export current node to a DOM node
- Get value of attribute by name
- Get value of attribute by position
- Get value of attribute by name and URI
- Indicates if parser property is set or not
- Indicates if document is valid
- Get URI for prefix in scope of node
- Positions reader on named attribute
- Positions reader on attribute by index
- Position reader on attribute by name and URI
- Move to parent element of current attribute node
- Move to first attribute of node
- Move to next attribute of node
- Move to next element skipping children
- Set URI to be parsed
- Move to next node in stream
- Set parser property
- Set URI of RelaxNG schema to validate against
- Set string containing RelaxNG schema to validate against
- Set string of data to be parsed
&reftitle.properties;
Name
Type
Read-only
Description
attributeCount
int
yes
The number of attributes on the node
baseURI
string
yes
The base URI of the node
depth
int
yes
Depth of the node in the tree starting at 0
hasAttributes
bool
yes
Indicates if node has attributes
hasValue
bool
yes
Indicates if node has a text value
isDefault
bool
yes
Indicates if attribute is defaulted from DTD
isEmptyElement
bool
yes
Indicates if node is an empty element tag
localName
string
yes
The local name of the node
name
string
yes
The qualified name of the node
namespaceURI
string
yes
The URI of the namespace associated with the node
nodeType
int
yes
The node type for the node
prefix
string
yes
The prefix of the namespace associated with the node
value
string
yes
The text value of the node
xmlLang
string
yes
The xml:lang scope which the node resides
&reference.xmlreader.constants;
&reference.xmlreader.functions;