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

Constructor Summary
XMLParser(ErrorHandler handler)
          Constructor
 
Method Summary
 Document parse(InputStream is, String dtd, String rootElem, Object sourceInfo)
          Parses a document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLParser

public XMLParser(ErrorHandler handler)
Constructor

Parameters:
handler - the handler
Method Detail

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 document
dtd - location of the dtd (a file path)
rootElem - the name of the root element
sourceInfo - 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.