org.enhydra.xml.xmlc.compiler
Class Parse
java.lang.Object
|
+--org.enhydra.xml.xmlc.compiler.Parse
- public class Parse
- extends Object
Parse a XML or HTML document into a DOM.
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parse
public Parse(ErrorReporter errorReporter,
PrintWriter verboseOut)
- Construct a new file parser.
- Parameters:
errorReporter
- Object used to handle errors.verboseOut
- Output stream for verbose and trace information.
isXMLDocument
public static boolean isXMLDocument(MetaData metaData)
throws IOException
- Determines if the file pointed at by the MetaData
<inputDocument url=''/>
attribute is XML. It's either explicitly specified using the MetaData
<inputDocument documentFormat=''/>
attribute, set to 'xml' to assert
XML format or 'html' to assert NOT XML format, or, if not specified,
must be determined by looking at the file
for an '<?xml
' prolog.
- Parameters:
metaData
- the XMLC metadata- Returns:
- true if the document is declared, or found, to be XML, otherwise false
- Since:
- 2.3.2
parse
public XMLCDocument parse(MetaData metaData)
throws XMLCException,
IOException
Copyright © 1999-2007 enhydra.org (Mark Diekhans, David Li, Richard Kunze, Jacob Kjome). All Rights reserved.