Libraries anvil xml parseSAX

void parseSAX(string content, SAXHandler handler, [array features] )
void parseSAX(URL url, SAXHandler handler, [array features] )
void parseSAX(File file, SAXHandler handler, [array features] )
void parseSAX(InputStream stream, SAXHandler handler, [array features] )

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