ContentHandler
interfacein packageorg.xml.sax
public interface ContentHandler:
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()

Methods
Modifier and Type Member Description
public characters
characters(ch as Array<Char>, start as Int, length as Int) as Void throws SAXException
Receives character data.
public declaration
declaration(version as String, encoding as String, standalone as String) as Void throws SAXException
Receives the XML declaration pseudo-attributes.
public endDocument
endDocument() as Void throws SAXException
Receives the end of a document.
public endElement
endElement(uri as String, localName as String, qName as String) as Void throws SAXException
Receives the end of an element.
public endPrefixMapping
endPrefixMapping(prefix as String) as Void throws SAXException
Ends a prefix-to-Namespace mapping scope.
public ignorableWhitespace
ignorableWhitespace(ch as Array<Char>, start as Int, length as Int) as Void throws SAXException
Receives ignorable whitespace in element content.
public processingInstruction
processingInstruction(target as String, data as String) as Void throws SAXException
Receives a processing instruction.
public setDocumentLocator
setDocumentLocator(locator as Locator) as Void
Receives the locator used for later document events.
public skippedEntity
skippedEntity(name as String) as Void throws SAXException
Receives notification of a skipped entity.
public startDocument
startDocument() as Void throws SAXException
Receives the beginning of a document.
public startElement
startElement(uri as String, localName as String, qName as String, atts as Attributes) as Void throws SAXException
Receives the beginning of an element.
public startPrefixMapping
startPrefixMapping(prefix as String, uri as String) as Void throws SAXException
Begins a prefix-to-Namespace mapping scope.