gd.xml
Class XMLParser
java.lang.Object
|
+--gd.xml.XMLParser
- public class XMLParser
- extends java.lang.Object
Class which parses XML without validation. The parsing offered
by this class is not quite conformant. Refer to the development
diary for details of non-conformance. Using this class will incur
only ~ 17k code overhead.
The parser currently supports the following encoding types:
- ASCII
- UTF-8
- UTF-16 (be assumed)
- UTF-16BE
- UTF-16LE
After parsing has been completed, the same instance of this class
may be reused to parse another document.
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
XMLParser
public XMLParser()
parseXML
public void parseXML(XMLResponder xmlResponder)
throws ParseException
- Called to parse an XML document.
Obtains document from supplied xmlResponder
to which document information is also sent.
- Parameters:
xmlResponder
- callback interface
parseDTD
public void parseDTD(XMLResponder xmlResponder)
throws ParseException
- Called to parse an external DTD only (without document).
Obtains DTD from supplied xmlResponder
to which the DTD declarations are also reported.
- Parameters:
xmlResponder
- callback interface