|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xalan.xpath.XPathSupportDefault | +--org.apache.xalan.xpath.xml.XMLParserLiaisonDefault | +--org.apache.xalan.xpath.xdom.XercesLiaison
Provides XSLTProcessor an interface to the Xerces XML parser. This liaison should be used if Xerces DOM nodes are being process as the source tree or as the result tree.
XSLTProcessor
,
org.apache.xml.parsers
Fields inherited from class org.apache.xalan.xpath.xml.XMLParserLiaisonDefault |
m_attrSpecialChars,
m_extensionFunctionNamespaces |
Constructor Summary | |
XercesLiaison()
Construct an instance. |
|
XercesLiaison(org.xml.sax.ErrorHandler errorHandler)
Constructor that takes SAX ErrorHandler as an argument. |
|
XercesLiaison(XPathEnvSupport envSupport)
Construct an instance. |
Method Summary | |
void |
checkNode(org.w3c.dom.Node node)
**For internal use only** Check node to see if it matches this liaison. |
org.w3c.dom.Document |
createDocument()
Create an empty DOM Document. |
org.w3c.dom.Element |
getElementByID(java.lang.String id,
org.w3c.dom.Document doc)
Given an ID, return the element. |
java.lang.String |
getNamespaceOfNode(org.w3c.dom.Node n)
Get the namespace of the node. |
org.w3c.dom.Node |
getParentOfNode(org.w3c.dom.Node node)
Get the parent of a node. |
java.lang.String |
getParserDescription()
Return a string suitible for telling the user what parser is being used. |
boolean |
isIgnorableWhitespace(org.w3c.dom.Text node)
Deprecated. |
void |
parse(org.xml.sax.InputSource source)
**For internal use only** Parse an XML document. |
void |
setUseDOM2getNamespaceURI(boolean b)
Set whether or not getNamespaceOfNode should use the Xerces/DOM2 getNamespaceURI. |
boolean |
supportsSAX()
Returns true that this implementation does support the SAX DocumentHandler interface. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public XercesLiaison(org.xml.sax.ErrorHandler errorHandler)
errorHandler
- SAX ErrorHandler instance.public XercesLiaison(XPathEnvSupport envSupport)
public XercesLiaison()
Method Detail |
public java.lang.String getParserDescription()
public void checkNode(org.w3c.dom.Node node) throws org.xml.sax.SAXException
public boolean supportsSAX()
public void parse(org.xml.sax.InputSource source) throws org.xml.sax.SAXException, java.io.IOException
The application can use this method to instruct the SAX parser to begin parsing an XML document from any valid input source (a character stream, a byte stream, or a URI).
Applications may not invoke this method while a parse is in progress (they should create a new Parser instead for each additional XML document). Once a parse is complete, an application may reuse the same Parser object, possibly with a different input source.
source
- The input source for the top-level of the
XML document.InputSource
,
XMLParserLiaisonDefault.parse(java.lang.String)
,
XMLParserLiaisonDefault.setEntityResolver(org.xml.sax.EntityResolver)
,
XMLParserLiaisonDefault.setDTDHandler(org.xml.sax.DTDHandler)
,
XMLParserLiaisonDefault.setDocumentHandler(org.xml.sax.DocumentHandler)
,
XMLParserLiaisonDefault.setErrorHandler(org.xml.sax.ErrorHandler)
public org.w3c.dom.Document createDocument()
public org.w3c.dom.Element getElementByID(java.lang.String id, org.w3c.dom.Document doc)
public boolean isIgnorableWhitespace(org.w3c.dom.Text node)
public void setUseDOM2getNamespaceURI(boolean b)
public java.lang.String getNamespaceOfNode(org.w3c.dom.Node n)
public org.w3c.dom.Node getParentOfNode(org.w3c.dom.Node node) throws java.lang.RuntimeException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |