org.enhydra.xml.xmlc.parsers
Interface XMLCParser
- All Known Implementing Classes:
- XercesDOMParser
- public interface XMLCParser
Interface for a class that specifies how to parse an XML file and provide
information needed to compile that file into a XMLC object. The object
must have a constructor that takes no arguments. The instance of the object
will only be use to parse a single document.
parse
public XMLCDocument parse(InputSource input,
LineNumberMap lineNumberMap,
XMLCDomFactory domFactory,
MetaData metaData,
ErrorReporter errorReporter,
ParseTracer tracer)
throws IOException,
XMLCException,
SAXException
- Parse a XML file (or any file, such as HTML, that can be converted into
XML).
- Parameters:
input
- The input source to parse.lineNumberMap
- If not null, a dynamic map of input stream
line numbers and offsets to source files and line numbers.
This object is dynamically updated as input is read. It may not
have valid mappings for characeters that have not been read.domFactory
- The DOM factory object.metaData
- MetaData for the document.errorReporter
- Object for reporting errors during the parse.tracer
- Object for parser info tracing.- Returns:
- A XMLC document object that contains the actual DOM Document.
- Throws:
XMLCException
- Thrown for fatal errors found parsing the
document.
Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.