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.


Constructor Summary
Parse(ErrorReporter errorReporter, PrintWriter verboseOut)
          Same as Parse(errorReporter, verboseOut, null)
Parse(ErrorReporter errorReporter, PrintWriter verboseOut, SSISystemIdResolver ssiSystemIdResolver)
           
 
Method Summary
static boolean isXMLDocument(MetaData metaData)
          Determines if the file pointed at by the MetaData <inputDocument url=''/> attribute is XML.
 XMLCDocument parse(MetaData metaData)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parse

public Parse(ErrorReporter errorReporter,
             PrintWriter verboseOut)
Same as Parse(errorReporter, verboseOut, null)
Parameters:
errorReporter - object used to handle errors
verboseOut - output stream for verbose and trace information, optional, may be null

Parse

public Parse(ErrorReporter errorReporter,
             PrintWriter verboseOut,
             SSISystemIdResolver ssiSystemIdResolver)
Parameters:
errorReporter - object used to handle errors
verboseOut - output stream for verbose and trace information, optional, may be null
ssiSystemIdResolver - a configured SSI system Id resolver, optional, may be null
Method Detail

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.