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:

After parsing has been completed, the same instance of this class may be reused to parse another document.


Constructor Summary
XMLParser()
           
 
Method Summary
 void parseDTD(XMLResponder xmlResponder)
          Called to parse an external DTD only (without document).
 void parseXML(XMLResponder xmlResponder)
          Called to parse an XML document.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLParser

public XMLParser()
Method Detail

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