klyn.io.xml.sax.DefaultHandler2.declaration
method

    public override declaration(version as String, encoding as String, standalone as String) as Void throws SAXException:

Description

Receives the XML declaration pseudo-attributes.

This callback is specific to Klyn's pure SAX parser. It is invoked when the document starts with an XML declaration such as `<?xml version="1.0"?>`.

Parameters

Parameter | Description
--- | ---
`version` | XML version, or `null` when omitted.
`encoding` | Declared encoding, or `null` when omitted.
`standalone` | Standalone value, or `null` when omitted.

Throws

- SAXException if the SAX handler rejects the event or cannot process the reported XML structure.

Example

    handler.declaration("1.0", "UTF-8", null)