fdda.plugins.xmlreader
Class XMLParser
java.lang.Object
|
+--fdda.plugins.xmlreader.XMLParser
- class XMLParser
- extends Object
Parses an XML file - wrapper for the java functions. SAX parser is used.
- Author:
- Jörg Rüdenauer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLParser
public XMLParser(ErrorHandler handler)
- Constructor
- Parameters:
handler
- the handler
parse
public Document parse(InputStream is,
String dtd,
String rootElem,
Object sourceInfo)
- Parses a document. This document is given as an InputStream. Since the DTD
will be fixed, its location and the name of the root element must also be
given.
- Parameters:
is
- the InputStream for reading the documentdtd
- location of the dtd (a file path)rootElem
- the name of the root elementsourceInfo
- info about the source, for error messages
- Returns:
- the parsed document or null if unrecoverable errors occur
API documentation for FDDA version 0.9. Generated on 17/02/2004 14:12.