public interface ContentHandler:
Handler for logical XML document content.
SAX parsers call this interface in document order to report document boundaries, Namespace mappings, elements, text and processing instructions.
@example `klyn import org.xml.sax
handler as ContentHandler = null if handler is not null: handler.startDocument()
| Modifier and Type | Member | Description |
|---|---|---|
| public | characterscharacters(ch as Array<Char>, start as Int, length as Int) as Void throws SAXException |
Receives character data. |
| public | declarationdeclaration(version as String, encoding as String, standalone as String) as Void throws SAXException |
Receives the XML declaration pseudo-attributes. |
| public | endDocumentendDocument() as Void throws SAXException |
Receives the end of a document. |
| public | endElementendElement(uri as String, localName as String, qName as String) as Void throws SAXException |
Receives the end of an element. |
| public | endPrefixMappingendPrefixMapping(prefix as String) as Void throws SAXException |
Ends a prefix-to-Namespace mapping scope. |
| public | ignorableWhitespaceignorableWhitespace(ch as Array<Char>, start as Int, length as Int) as Void throws SAXException |
Receives ignorable whitespace in element content. |
| public | processingInstructionprocessingInstruction(target as String, data as String) as Void throws SAXException |
Receives a processing instruction. |
| public | setDocumentLocatorsetDocumentLocator(locator as Locator) as Void |
Receives the locator used for later document events. |
| public | skippedEntityskippedEntity(name as String) as Void throws SAXException |
Receives notification of a skipped entity. |
| public | startDocumentstartDocument() as Void throws SAXException |
Receives the beginning of a document. |
| public | startElementstartElement(uri as String, localName as String, qName as String, atts as Attributes) as Void throws SAXException |
Receives the beginning of an element. |
| public | startPrefixMappingstartPrefixMapping(prefix as String, uri as String) as Void throws SAXException |
Begins a prefix-to-Namespace mapping scope. |