XMLReader
interface in package org.xml.sax

    public interface XMLReader:

XMLReader

SAX2 interface for reading XML documents using callbacks.

Readers expose feature and property configuration, handler registration and synchronous parse entry points.

@example ```klyn import org.xml.sax

reader as XMLReader = null if reader is not null: reader.setFeature("http://xml.org/sax/features/namespaces", true)

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | getContentHandler `getContentHandler() as ContentHandler` | Returns the current content handler.
public | getDTDHandler `getDTDHandler() as DTDHandler` | Returns the current DTD handler.
public | getEntityResolver `getEntityResolver() as EntityResolver` | Returns the current entity resolver.
public | getErrorHandler `getErrorHandler() as ErrorHandler` | Returns the current error handler.
public | getFeature `getFeature(name as String) as Boolean throws SAXNotRecognizedException, SAXNotSupportedException` | Returns the current value of a feature flag.
public | getProperty `getProperty(name as String) as Object throws SAXNotRecognizedException, SAXNotSupportedException` | Returns the current value of a property.
public | parse `parse(input as InputSource) as Void throws IOException, SAXException` | Parses XML from an input source.
public | parse `parse(systemId as String) as Void throws IOException, SAXException` | Parses XML from a system identifier.
public | setContentHandler `setContentHandler(handler as ContentHandler) as Void` | Registers a content handler.
public | setDTDHandler `setDTDHandler(handler as DTDHandler) as Void` | Registers a DTD handler.
public | setEntityResolver `setEntityResolver(resolver as EntityResolver) as Void` | Registers an entity resolver.
public | setErrorHandler `setErrorHandler(handler as ErrorHandler) as Void` | Registers an error handler.
public | setFeature `setFeature(name as String, value as Boolean) as Void throws SAXNotRecognizedException, SAXNotSupportedException` | Sets the current value of a feature flag.
public | setProperty `setProperty(name as String, value as Object) as Void throws SAXNotRecognizedException, SAXNotSupportedException` | Sets the current value of a property.