Parser tagged data using simple parser (anvil.java.text.Parser). This parser never generates any errors, except possible IO error while reading from stream.
| Throws |
IOError -
If an I/O error occured |
Parses document from given source and returns the root node of document object model.
| Parameters |
handler -
DOM handler features - set of features |
| Throws |
XMLError -
if an XML error occured IOError - if an I/O error occured. |
Parses XML document using SAX parser.
Behaviour of parser can be controlled through 'features' which is array with strings mapped to booleans.
- validating
- Specifies that the parser produced by this code will validate documents as they are parsed. By default the value of this is set to false.
- namespaceAware
- Specifies that the parser produced by this code will provide support for XML namespaces. By default the value of this is set to false.
- any other features
- Supported by the SAX implementation.
| Parameters |
handler -
SAX handler features - set of features |
| Throws |
XMLError -
if an XML error occured IOError - if an I/O error occured |