<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<!--NewPage--> | |
<HTML> | |
<HEAD> | |
<!-- Generated by javadoc (build 1.5.0_18) on Sun Apr 01 21:18:38 PDT 2012 --> | |
<TITLE> | |
DOM2Helper | |
</TITLE> | |
<META NAME="keywords" CONTENT="org.apache.xml.utils.DOM2Helper class"> | |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> | |
<SCRIPT type="text/javascript"> | |
function windowTitle() | |
{ | |
parent.document.title="DOM2Helper"; | |
} | |
</SCRIPT> | |
<NOSCRIPT> | |
</NOSCRIPT> | |
</HEAD> | |
<BODY BGCOLOR="white" onload="windowTitle();"> | |
<!-- ========= START OF TOP NAVBAR ======= --> | |
<A NAME="navbar_top"><!-- --></A> | |
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_top_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<TR ALIGN="center" VALIGN="top"> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DOM2Helper.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
</TR> | |
</TABLE> | |
</TD> | |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
</EM> | |
</TD> | |
</TR> | |
<TR> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../org/apache/xml/utils/DefaultErrorHandler.html" title="class in org.apache.xml.utils"><B>PREV CLASS</B></A> | |
<A HREF="../../../../org/apache/xml/utils/DOMBuilder.html" title="class in org.apache.xml.utils"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../index.html?org/apache/xml/utils/DOM2Helper.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="DOM2Helper.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
</TR> | |
</TABLE> | |
<A NAME="skip-navbar_top"></A> | |
<!-- ========= END OF TOP NAVBAR ========= --> | |
<HR> | |
<!-- ======== START OF CLASS DATA ======== --> | |
<H2> | |
<FONT SIZE="-1"> | |
org.apache.xml.utils</FONT> | |
<BR> | |
Class DOM2Helper</H2> | |
<PRE> | |
java.lang.Object | |
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../org/apache/xml/utils/DOMHelper.html" title="class in org.apache.xml.utils">org.apache.xml.utils.DOMHelper</A> | |
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.xml.utils.DOM2Helper</B> | |
</PRE> | |
<HR> | |
<B>Deprecated.</B> <I>Since the introduction of the DTM, this class will be removed. | |
This class provides a DOM level 2 "helper", which provides services currently | |
not provided be the DOM standard.</I> | |
<P> | |
<DL> | |
<DT><PRE>public class <A HREF="../../../../src-html/org/apache/xml/utils/DOM2Helper.html#line.42"><B>DOM2Helper</B></A><DT>extends <A HREF="../../../../org/apache/xml/utils/DOMHelper.html" title="class in org.apache.xml.utils">DOMHelper</A></DL> | |
</PRE> | |
<P> | |
<HR> | |
<P> | |
<!-- =========== FIELD SUMMARY =========== --> | |
<A NAME="field_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Field Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>private org.w3c.dom.Document</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/DOM2Helper.html#m_doc">m_doc</A></B></CODE> | |
<BR> | |
<B>Deprecated.</B> Field m_doc: Document Node for the document this helper is currently | |
accessing or building</TD> | |
</TR> | |
</TABLE> | |
<A NAME="fields_inherited_from_class_org.apache.xml.utils.DOMHelper"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Fields inherited from class org.apache.xml.utils.<A HREF="../../../../org/apache/xml/utils/DOMHelper.html" title="class in org.apache.xml.utils">DOMHelper</A></B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><A HREF="../../../../org/apache/xml/utils/DOMHelper.html#m_candidateNoAncestorXMLNS">m_candidateNoAncestorXMLNS</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#m_DOMFactory">m_DOMFactory</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#m_NSInfoNullNoAncestorXMLNS">m_NSInfoNullNoAncestorXMLNS</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#m_NSInfoNullWithoutXMLNS">m_NSInfoNullWithoutXMLNS</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#m_NSInfoNullWithXMLNS">m_NSInfoNullWithXMLNS</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#m_NSInfos">m_NSInfos</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#m_NSInfoUnProcNoAncestorXMLNS">m_NSInfoUnProcNoAncestorXMLNS</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#m_NSInfoUnProcWithoutXMLNS">m_NSInfoUnProcWithoutXMLNS</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#m_NSInfoUnProcWithXMLNS">m_NSInfoUnProcWithXMLNS</A></CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> | |
<A NAME="constructor_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Constructor Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/DOM2Helper.html#DOM2Helper()">DOM2Helper</A></B>()</CODE> | |
<BR> | |
<B>Deprecated.</B> Construct an instance.</TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ========== METHOD SUMMARY =========== --> | |
<A NAME="method_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Method Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/DOM2Helper.html#checkNode(org.w3c.dom.Node)">checkNode</A></B>(org.w3c.dom.Node node)</CODE> | |
<BR> | |
<B>Deprecated.</B> Check node to see if it was created by a DOM implementation | |
that this helper is intended to support.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> org.w3c.dom.Document</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/DOM2Helper.html#getDocument()">getDocument</A></B>()</CODE> | |
<BR> | |
<B>Deprecated.</B> Query which document this helper is currently operating on.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> org.w3c.dom.Element</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/DOM2Helper.html#getElementByID(java.lang.String, org.w3c.dom.Document)">getElementByID</A></B>(java.lang.String id, | |
org.w3c.dom.Document doc)</CODE> | |
<BR> | |
<B>Deprecated.</B> Given an XML ID, return the element.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/DOM2Helper.html#getLocalNameOfNode(org.w3c.dom.Node)">getLocalNameOfNode</A></B>(org.w3c.dom.Node n)</CODE> | |
<BR> | |
<B>Deprecated.</B> Returns the local name of the given node, as defined by the | |
XML Namespaces specification.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/DOM2Helper.html#getNamespaceOfNode(org.w3c.dom.Node)">getNamespaceOfNode</A></B>(org.w3c.dom.Node n)</CODE> | |
<BR> | |
<B>Deprecated.</B> Returns the Namespace Name (Namespace URI) for the given node.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static org.w3c.dom.Node</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/DOM2Helper.html#getParentOfNode(org.w3c.dom.Node)">getParentOfNode</A></B>(org.w3c.dom.Node node)</CODE> | |
<BR> | |
<B>Deprecated.</B> Get the XPath-model parent of a node.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/DOM2Helper.html#isNodeAfter(org.w3c.dom.Node, org.w3c.dom.Node)">isNodeAfter</A></B>(org.w3c.dom.Node node1, | |
org.w3c.dom.Node node2)</CODE> | |
<BR> | |
<B>Deprecated.</B> Figure out whether node2 should be considered as being later | |
in the document than node1, in Document Order as defined | |
by the XPath model.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/DOM2Helper.html#parse(org.xml.sax.InputSource)">parse</A></B>(org.xml.sax.InputSource source)</CODE> | |
<BR> | |
<B>Deprecated.</B> Parse an XML document.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/DOM2Helper.html#setDocument(org.w3c.dom.Document)">setDocument</A></B>(org.w3c.dom.Document doc)</CODE> | |
<BR> | |
<B>Deprecated.</B> Specify which document this helper is currently operating on.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/DOM2Helper.html#supportsSAX()">supportsSAX</A></B>()</CODE> | |
<BR> | |
<B>Deprecated.</B> Returns true if the DOM implementation handled by this helper | |
supports the SAX ContentHandler interface.</TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_org.apache.xml.utils.DOMHelper"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from class org.apache.xml.utils.<A HREF="../../../../org/apache/xml/utils/DOMHelper.html" title="class in org.apache.xml.utils">DOMHelper</A></B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><A HREF="../../../../org/apache/xml/utils/DOMHelper.html#createDocument()">createDocument</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#createDocument(boolean)">createDocument</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#getDOMFactory()">getDOMFactory</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#getExpandedAttributeName(org.w3c.dom.Attr)">getExpandedAttributeName</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#getExpandedElementName(org.w3c.dom.Element)">getExpandedElementName</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#getLevel(org.w3c.dom.Node)">getLevel</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#getNamespaceForPrefix(java.lang.String, org.w3c.dom.Element)">getNamespaceForPrefix</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#getNodeData(org.w3c.dom.Node)">getNodeData</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#getNodeData(org.w3c.dom.Node, org.apache.xml.utils.FastStringBuffer)">getNodeData</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#getRoot(org.w3c.dom.Node)">getRoot</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#getRootNode(org.w3c.dom.Node)">getRootNode</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#getUniqueID(org.w3c.dom.Node)">getUniqueID</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#getUnparsedEntityURI(java.lang.String, org.w3c.dom.Document)">getUnparsedEntityURI</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#isIgnorableWhitespace(org.w3c.dom.Text)">isIgnorableWhitespace</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#isNamespaceNode(org.w3c.dom.Node)">isNamespaceNode</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#isNodeTheSame(org.w3c.dom.Node, org.w3c.dom.Node)">isNodeTheSame</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#setDOMFactory(org.w3c.dom.Document)">setDOMFactory</A>, <A HREF="../../../../org/apache/xml/utils/DOMHelper.html#shouldStripSourceNode(org.w3c.dom.Node)">shouldStripSourceNode</A></CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<P> | |
<!-- ============ FIELD DETAIL =========== --> | |
<A NAME="field_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Field Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="m_doc"><!-- --></A><H3> | |
m_doc</H3> | |
<PRE> | |
private org.w3c.dom.Document <A HREF="../../../../src-html/org/apache/xml/utils/DOM2Helper.html#line.87"><B>m_doc</B></A></PRE> | |
<DL> | |
<DD><B>Deprecated.</B> <DD>Field m_doc: Document Node for the document this helper is currently | |
accessing or building | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/xml/utils/DOM2Helper.html#setDocument(org.w3c.dom.Document)"><CODE>setDocument(org.w3c.dom.Document)</CODE></A>, | |
<A HREF="../../../../org/apache/xml/utils/DOM2Helper.html#getDocument()"><CODE>getDocument()</CODE></A></DL> | |
</DL> | |
<!-- ========= CONSTRUCTOR DETAIL ======== --> | |
<A NAME="constructor_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Constructor Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="DOM2Helper()"><!-- --></A><H3> | |
DOM2Helper</H3> | |
<PRE> | |
public <A HREF="../../../../src-html/org/apache/xml/utils/DOM2Helper.html#line.48"><B>DOM2Helper</B></A>()</PRE> | |
<DL> | |
<DD><B>Deprecated.</B> <DD>Construct an instance. | |
<P> | |
</DL> | |
<!-- ============ METHOD DETAIL ========== --> | |
<A NAME="method_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Method Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="checkNode(org.w3c.dom.Node)"><!-- --></A><H3> | |
checkNode</H3> | |
<PRE> | |
public void <A HREF="../../../../src-html/org/apache/xml/utils/DOM2Helper.html#line.63"><B>checkNode</B></A>(org.w3c.dom.Node node) | |
throws javax.xml.transform.TransformerException</PRE> | |
<DL> | |
<DD><B>Deprecated.</B> <DD>Check node to see if it was created by a DOM implementation | |
that this helper is intended to support. This is currently | |
disabled, and assumes all nodes are acceptable rather than checking | |
that they implement org.apache.xerces.dom.NodeImpl. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>node</CODE> - The node to be tested. | |
<DT><B>Throws:</B> | |
<DD><CODE>javax.xml.transform.TransformerException</CODE> - if the node is not one which this | |
DOM2Helper can support. If we return without throwing the exception, | |
the node is compatable.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="supportsSAX()"><!-- --></A><H3> | |
supportsSAX</H3> | |
<PRE> | |
public boolean <A HREF="../../../../src-html/org/apache/xml/utils/DOM2Helper.html#line.77"><B>supportsSAX</B></A>()</PRE> | |
<DL> | |
<DD><B>Deprecated.</B> <DD>Returns true if the DOM implementation handled by this helper | |
supports the SAX ContentHandler interface. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>true (since Xerces does).</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setDocument(org.w3c.dom.Document)"><!-- --></A><H3> | |
setDocument</H3> | |
<PRE> | |
public void <A HREF="../../../../src-html/org/apache/xml/utils/DOM2Helper.html#line.95"><B>setDocument</B></A>(org.w3c.dom.Document doc)</PRE> | |
<DL> | |
<DD><B>Deprecated.</B> <DD>Specify which document this helper is currently operating on. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>doc</CODE> - The DOM Document node for this document.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/xml/utils/DOM2Helper.html#getDocument()"><CODE>getDocument()</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getDocument()"><!-- --></A><H3> | |
getDocument</H3> | |
<PRE> | |
public org.w3c.dom.Document <A HREF="../../../../src-html/org/apache/xml/utils/DOM2Helper.html#line.106"><B>getDocument</B></A>()</PRE> | |
<DL> | |
<DD><B>Deprecated.</B> <DD>Query which document this helper is currently operating on. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>The DOM Document node for this document.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/xml/utils/DOM2Helper.html#setDocument(org.w3c.dom.Document)"><CODE>setDocument(org.w3c.dom.Document)</CODE></A></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="parse(org.xml.sax.InputSource)"><!-- --></A><H3> | |
parse</H3> | |
<PRE> | |
public void <A HREF="../../../../src-html/org/apache/xml/utils/DOM2Helper.html#line.133"><B>parse</B></A>(org.xml.sax.InputSource source) | |
throws javax.xml.transform.TransformerException</PRE> | |
<DL> | |
<DD><B>Deprecated.</B> <DD>Parse an XML document. | |
<p>Right now the Xerces DOMParser class is used. This needs | |
fixing, either via jaxp, or via some other, standard method.</p> | |
<p>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).</p> | |
<p>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.</p> | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>source</CODE> - The input source for the top-level of the | |
XML document. | |
<DT><B>Throws:</B> | |
<DD><CODE>javax.xml.transform.TransformerException</CODE> - if any checked exception is thrown.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getElementByID(java.lang.String, org.w3c.dom.Document)"><!-- --></A><H3> | |
getElementByID</H3> | |
<PRE> | |
public org.w3c.dom.Element <A HREF="../../../../src-html/org/apache/xml/utils/DOM2Helper.html#line.206"><B>getElementByID</B></A>(java.lang.String id, | |
org.w3c.dom.Document doc)</PRE> | |
<DL> | |
<DD><B>Deprecated.</B> <DD>Given an XML ID, return the element. This requires assistance from the | |
DOM and parser, and is meaningful only in the context of a DTD | |
or schema which declares attributes as being of type ID. This | |
information may or may not be available in all parsers, may or | |
may not be available for specific documents, and may or may not | |
be available when validation is not turned on. | |
<P> | |
<DD><DL> | |
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/xml/utils/DOMHelper.html#getElementByID(java.lang.String, org.w3c.dom.Document)">getElementByID</A></CODE> in class <CODE><A HREF="../../../../org/apache/xml/utils/DOMHelper.html" title="class in org.apache.xml.utils">DOMHelper</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>id</CODE> - The ID to search for, as a String.<DD><CODE>doc</CODE> - The document to search within, as a DOM Document node. | |
<DT><B>Returns:</B><DD>DOM Element node with an attribute of type ID whose value | |
uniquely matches the requested id string, or null if there isn't | |
such an element or if the DOM can't answer the question for other | |
reasons.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="isNodeAfter(org.w3c.dom.Node, org.w3c.dom.Node)"><!-- --></A><H3> | |
isNodeAfter</H3> | |
<PRE> | |
public static boolean <A HREF="../../../../src-html/org/apache/xml/utils/DOM2Helper.html#line.229"><B>isNodeAfter</B></A>(org.w3c.dom.Node node1, | |
org.w3c.dom.Node node2)</PRE> | |
<DL> | |
<DD><B>Deprecated.</B> <DD>Figure out whether node2 should be considered as being later | |
in the document than node1, in Document Order as defined | |
by the XPath model. This may not agree with the ordering defined | |
by other XML applications. | |
<p> | |
There are some cases where ordering isn't defined, and neither are | |
the results of this function -- though we'll generally return true. | |
<p> | |
TODO: Make sure this does the right thing with attribute nodes!!! | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>node1</CODE> - DOM Node to perform position comparison on.<DD><CODE>node2</CODE> - DOM Node to perform position comparison on . | |
<DT><B>Returns:</B><DD>false if node2 comes before node1, otherwise return true. | |
You can think of this as | |
<code>(node1.documentOrderPosition <= node2.documentOrderPosition)</code>.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getParentOfNode(org.w3c.dom.Node)"><!-- --></A><H3> | |
getParentOfNode</H3> | |
<PRE> | |
public static org.w3c.dom.Node <A HREF="../../../../src-html/org/apache/xml/utils/DOM2Helper.html#line.262"><B>getParentOfNode</B></A>(org.w3c.dom.Node node)</PRE> | |
<DL> | |
<DD><B>Deprecated.</B> <DD>Get the XPath-model parent of a node. This version takes advantage | |
of the DOM Level 2 Attr.ownerElement() method; the base version we | |
would otherwise inherit is prepared to fall back on exhaustively | |
walking the document to find an Attr's parent. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>node</CODE> - Node to be examined | |
<DT><B>Returns:</B><DD>the DOM parent of the input node, if there is one, or the | |
ownerElement if the input node is an Attr, or null if the node is | |
a Document, a DocumentFragment, or an orphan.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getLocalNameOfNode(org.w3c.dom.Node)"><!-- --></A><H3> | |
getLocalNameOfNode</H3> | |
<PRE> | |
public java.lang.String <A HREF="../../../../src-html/org/apache/xml/utils/DOM2Helper.html#line.281"><B>getLocalNameOfNode</B></A>(org.w3c.dom.Node n)</PRE> | |
<DL> | |
<DD><B>Deprecated.</B> <DD>Returns the local name of the given node, as defined by the | |
XML Namespaces specification. This is prepared to handle documents | |
built using DOM Level 1 methods by falling back upon explicitly | |
parsing the node name. | |
<P> | |
<DD><DL> | |
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/xml/utils/DOMHelper.html#getLocalNameOfNode(org.w3c.dom.Node)">getLocalNameOfNode</A></CODE> in class <CODE><A HREF="../../../../org/apache/xml/utils/DOMHelper.html" title="class in org.apache.xml.utils">DOMHelper</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>n</CODE> - Node to be examined | |
<DT><B>Returns:</B><DD>String containing the local name, or null if the node | |
was not assigned a Namespace.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getNamespaceOfNode(org.w3c.dom.Node)"><!-- --></A><H3> | |
getNamespaceOfNode</H3> | |
<PRE> | |
public java.lang.String <A HREF="../../../../src-html/org/apache/xml/utils/DOM2Helper.html#line.304"><B>getNamespaceOfNode</B></A>(org.w3c.dom.Node n)</PRE> | |
<DL> | |
<DD><B>Deprecated.</B> <DD>Returns the Namespace Name (Namespace URI) for the given node. | |
In a Level 2 DOM, you can ask the node itself. Note, however, that | |
doing so conflicts with our decision in getLocalNameOfNode not | |
to trust the that the DOM was indeed created using the Level 2 | |
methods. If Level 1 methods were used, these two functions will | |
disagree with each other. | |
<p> | |
TODO: Reconcile with getLocalNameOfNode. | |
<P> | |
<DD><DL> | |
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/xml/utils/DOMHelper.html#getNamespaceOfNode(org.w3c.dom.Node)">getNamespaceOfNode</A></CODE> in class <CODE><A HREF="../../../../org/apache/xml/utils/DOMHelper.html" title="class in org.apache.xml.utils">DOMHelper</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>n</CODE> - Node to be examined | |
<DT><B>Returns:</B><DD>String containing the Namespace URI bound to this DOM node | |
at the time the Node was created.</DL> | |
</DD> | |
</DL> | |
<!-- ========= END OF CLASS DATA ========= --> | |
<HR> | |
<!-- ======= START OF BOTTOM NAVBAR ====== --> | |
<A NAME="navbar_bottom"><!-- --></A> | |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_bottom_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<TR ALIGN="center" VALIGN="top"> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DOM2Helper.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
</TR> | |
</TABLE> | |
</TD> | |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
</EM> | |
</TD> | |
</TR> | |
<TR> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../org/apache/xml/utils/DefaultErrorHandler.html" title="class in org.apache.xml.utils"><B>PREV CLASS</B></A> | |
<A HREF="../../../../org/apache/xml/utils/DOMBuilder.html" title="class in org.apache.xml.utils"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../index.html?org/apache/xml/utils/DOM2Helper.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="DOM2Helper.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
</TR> | |
</TABLE> | |
<A NAME="skip-navbar_bottom"></A> | |
<!-- ======== END OF BOTTOM NAVBAR ======= --> | |
<HR> | |
</BODY> | |
</HTML> |