xml.StaxReader methods
Methods for the xml.StaxReader class.
| Name | Description | 
|---|---|
 | 
Constructor of a StaxReader object. | 
| Name | Description | 
|---|---|
 | 
Sets a feature of a StaxReader object. | 
 | 
Gets a feature of a StaxReader object. | 
| Name | Description | 
|---|---|
 | 
Sets the input stream of the StaxReader object to a file or a URL and starts the streaming | 
 | 
Sets the input stream of the StaxReader object to a DomDocument object and starts the streaming. | 
 | 
Sets the input stream of the StaxReader object to a TEXT large object and starts the streaming. | 
 | 
Sets the input stream of the StaxReader object to a PIPE and starts the streaming. | 
 | 
Closes the StaxReader streaming and releases all associated resources. | 
| Name | Description | 
|---|---|
 | 
Returns a string that indicates the type of event the cursor of the StaxReader object is pointing to. | 
 | 
Checks whether the StaxReader cursor points to a node with a name. | 
 | 
Checks whether the StaxReader cursor points to a node with a text value. | 
 | 
Checks whether the StaxReader cursor points to an empty element node. | 
 | 
Checks whether the StaxReader cursor points to a start element node. | 
 | 
Checks whether the StaxReader cursor points to an end element node. | 
 | 
Checks whether the StaxReader cursor points to a text node. | 
 | 
Checks whether the StaxReader cursor points to ignorable whitespace. | 
 | 
Returns the number of bytes read by the StaxReader from the current XML document. | 
| Name | Description | 
|---|---|
 | 
Returns the document encoding defined in the XML Document declaration, or NULL. | 
 | 
Returns the document version defined in the XML Document declaration, or NULL. | 
 | 
Checks whether the document standalone attribute defined in the XML Document declaration is set to yes. | 
 | 
Checks whether the document standalone attribute is defined in the XML Document declaration. | 
| Name | Description | 
|---|---|
 | 
Returns the prefix of the current XML node, or NULL. | 
 | 
Returns the local name of the current XML node, or NULL. | 
 | 
Returns the qualified name of the current XML node, or NULL. | 
 | 
Returns the namespace URI of the current XML node, or NULL. | 
 | 
Returns as a string the value of the current XML node, or NULL. | 
| Name | Description | 
|---|---|
 | 
Returns the target part of a XML Processing Instruction node, or NULL. | 
 | 
Returns the data part of a XML Processing Instruction node, or NULL. | 
| Name | Description | 
|---|---|
 | 
Returns the number of XML attributes defined on the current XML node, or zero. | 
 | 
Returns the local name of a XML attribute defined at a given position on the current XML node, or NULL. | 
 | 
Returns the namespace URI of a XML attribute defined at a given position on the current XML node, or NULL. | 
 | 
Returns the prefix of a XML attribute defined at a given position on the current XML node, or NULL. | 
 | 
Returns the value of a XML attribute defined at a given position on the current XML node, or NULL. | 
 | 
Returns the value of an XML attribute of a given name and/or namespace. | 
| Name | Description | 
|---|---|
 | 
Looks up the namespace URI associated with a given prefix starting from the current XML node the StaxReader cursor is pointing to. | 
 | 
Looks up the prefix associated with a given namespace URI, starting from the current XML node the StaxReader cursor is pointing to. | 
 | 
Returns the number of namespace declarations defined on the current XML node, or zero. | 
 | 
Returns the prefix of a namespace declaration defined at a given position on the current XML node, or NULL. | 
 | 
Returns the URI of a namespace declaration defined at a given position on the current XML node, or NULL. | 
| Name | Description | 
|---|---|
 | 
Checks whether the StaxReader cursor can be moved to a XML node next to it. | 
 | 
Moves the StaxReader cursor to the next XML node. | 
 | 
Moves the StaxReader cursor to the next XML open or end tag | 
 | 
Moves the StaxReader cursor to the immediate next sibling XML Element of the current node, skipping all its child nodes. |