org.xfp.engine
Class XMLUtils

java.lang.Object
  extended byorg.xfp.engine.XMLUtils

public class XMLUtils
extends java.lang.Object

XML parsing utilities.

Version:
$Id: XMLUtils.java,v 1.1 2004/03/19 15:56:43 flaviotordini Exp $
Author:
Flavio Tordini

Field Summary
static java.lang.String commonSchema
          W3C Schema for Common types
static java.lang.String engineSchema
          W3C Schema for Engine documents
static java.lang.String pipelineSchema
          W3C Schema for Pipeline documents
static java.lang.String scheduleSchema
          W3C Schema for Schedule documents
 
Constructor Summary
XMLUtils()
           
 
Method Summary
static org.w3c.dom.Document parseXML(org.xml.sax.InputSource in, java.lang.String w3cSchema)
          Parses XML.
static org.w3c.dom.Document parseXMLFile(java.io.File xmlFile, java.lang.String w3cSchema)
          Parses XML files.
static org.w3c.dom.Document parseXMLResource(java.lang.String resource, java.lang.String w3cSchema)
          Parses XML resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pipelineSchema

public static final java.lang.String pipelineSchema
W3C Schema for Pipeline documents

See Also:
Constant Field Values

engineSchema

public static final java.lang.String engineSchema
W3C Schema for Engine documents

See Also:
Constant Field Values

scheduleSchema

public static final java.lang.String scheduleSchema
W3C Schema for Schedule documents

See Also:
Constant Field Values

commonSchema

public static final java.lang.String commonSchema
W3C Schema for Common types

See Also:
Constant Field Values
Constructor Detail

XMLUtils

public XMLUtils()
Method Detail

parseXMLFile

public static org.w3c.dom.Document parseXMLFile(java.io.File xmlFile,
                                                java.lang.String w3cSchema)
                                         throws java.lang.Exception
Parses XML files. Supports error handling and entity resolution.

Throws:
java.lang.Exception

parseXMLResource

public static org.w3c.dom.Document parseXMLResource(java.lang.String resource,
                                                    java.lang.String w3cSchema)
                                             throws java.lang.Exception
Parses XML resources. Supports error handling and entity resolution.

Throws:
java.lang.Exception

parseXML

public static org.w3c.dom.Document parseXML(org.xml.sax.InputSource in,
                                            java.lang.String w3cSchema)
                                     throws java.lang.Exception
Parses XML. Supports error handling and entity resolution.

Throws:
java.lang.Exception


Copyright © 2003-2004 XFP Team. All Rights Reserved.