com.fujitsu.xml.omquery
Class JAXP_ProcessorImpl

java.lang.Object
  extended by com.jclark.xsl.dom.XMLProcessorImpl
      extended by com.fujitsu.xml.omquery.JAXP_ProcessorImpl
All Implemented Interfaces:
com.jclark.xsl.dom.DOMExtensions, com.jclark.xsl.sax.XMLProcessorEx, com.jclark.xsl.tr.XMLProcessor

public class JAXP_ProcessorImpl
extends com.jclark.xsl.dom.XMLProcessorImpl

XT's XML processor implementation for JAXP 1.0 DOM.


For example:
  System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");

  InputSource input = new InputSource(createURL("sample.xml"));
  JAXP_ProcessorImpl xmlproc = new JAXP_ProcessorImpl();

  org.w3c.Dom.Document doc = xmlproc.load(input);
 

Author:
Takuki Kamiya

Constructor Summary
JAXP_ProcessorImpl()
           
 
Method Summary
 org.w3c.dom.Element getElementById(org.w3c.dom.Document doc, java.lang.String str)
          Get an element (if any) which which has the specified ID.
 org.w3c.dom.Document load(org.xml.sax.InputSource input)
          Parses XML file or stream to build a DOM.
 
Methods inherited from class com.jclark.xsl.dom.XMLProcessorImpl
createResult, load, load, setErrorHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXP_ProcessorImpl

public JAXP_ProcessorImpl()
Method Detail

load

public org.w3c.dom.Document load(org.xml.sax.InputSource input)
                          throws java.io.IOException,
                                 org.xml.sax.SAXException
Parses XML file or stream to build a DOM. Parses XML and returns org.w3c.dom.Document which represents root node for the specified input XML file or stream.

Specified by:
load in class com.jclark.xsl.dom.XMLProcessorImpl
Parameters:
is - XML file or stream represented as InputSource
Returns:
Document object
Throws:
java.io.IOException
org.xml.sax.SAXException

getElementById

public org.w3c.dom.Element getElementById(org.w3c.dom.Document doc,
                                          java.lang.String str)
Get an element (if any) which which has the specified ID. Currently this method always returns null.

Specified by:
getElementById in interface com.jclark.xsl.dom.DOMExtensions
Overrides:
getElementById in class com.jclark.xsl.dom.XMLProcessorImpl
Parameters:
base_node - the node where query processing starts from.
selector - XPath query string
Returns:
Enumeration of objects of type org.w3c.dom.Node for iterating through the query result