klyn.io.xml.sax.SAXParser.parse
method

    public parse(input as InputSource, handler as DefaultHandler) as Void throws IOException, SAXException:

Description

Parses an input source with a `DefaultHandler`.

The handler is installed as entity resolver, DTD handler, content handler and error handler. If it also implements SAX extension handler interfaces, the matching SAX properties are configured before parsing.

Parameters

- input XML input source.
- handler Handler receiving SAX callbacks.

Throws

- IOException if input cannot be read.
- SAXException if parsing fails.

Example

    parser.parse(InputSource("file:/tmp/doc.xml"), DefaultHandler())