| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
| <!--NewPage-->
|
| <HTML>
|
| <HEAD>
|
| <!-- Generated by javadoc on Thu Nov 22 17:12:57 EST 2007 -->
|
| <TITLE>
|
| Xalan-Java 2.7.1: Class DOM2Helper
|
| </TITLE>
|
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
|
| </HEAD>
|
| <BODY BGCOLOR="white">
|
|
|
| <!-- ========== START OF NAVBAR ========== -->
|
| <A NAME="navbar_top"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
|
| <TR>
|
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
|
| <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"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../org/apache/xml/utils/DOMBuilder.html"><B>NEXT CLASS</B></A></FONT></TD>
|
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
|
| <A HREF="DOM2Helper.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
| </TR>
|
| </TABLE>
|
| <!-- =========== END OF NAVBAR =========== -->
|
|
|
| <HR>
|
| <!-- ======== START OF CLASS DATA ======== -->
|
| <H2>
|
| <FONT SIZE="-1">
|
| org.apache.xml.utils</FONT>
|
| <BR>
|
| Class DOM2Helper</H2>
|
| <PRE>
|
| java.lang.Object
|
| |
|
| +--<A HREF="../../../../org/apache/xml/utils/DOMHelper.html">org.apache.xml.utils.DOMHelper</A>
|
| |
|
| +--<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>public class <B>DOM2Helper</B><DT>extends <A HREF="../../../../org/apache/xml/utils/DOMHelper.html">DOMHelper</A></DL>
|
|
|
| <P>
|
| <HR>
|
|
|
| <P>
|
| <!-- ======== INNER CLASS SUMMARY ======== -->
|
|
|
|
|
| <!-- =========== FIELD SUMMARY =========== -->
|
|
|
|
|
| <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=2><FONT SIZE="+2">
|
| <B>Constructor Summary</B></FONT></TD>
|
| </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" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=2><FONT SIZE="+2">
|
| <B>Method Summary</B></FONT></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#checkNode(org.w3c.dom.Node)">checkNode</A></B>(<A HREF="../../../../org/w3c/dom/Node.html">Node</A> 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> <A HREF="../../../../org/w3c/dom/Document.html">Document</A></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> <A HREF="../../../../org/w3c/dom/Element.html">Element</A></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, |
| <A HREF="../../../../org/w3c/dom/Document.html">Document</A> 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>(<A HREF="../../../../org/w3c/dom/Node.html">Node</A> 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>(<A HREF="../../../../org/w3c/dom/Node.html">Node</A> 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 <A HREF="../../../../org/w3c/dom/Node.html">Node</A></CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../org/apache/xml/utils/DOM2Helper.html#getParentOfNode(org.w3c.dom.Node)">getParentOfNode</A></B>(<A HREF="../../../../org/w3c/dom/Node.html">Node</A> 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>(<A HREF="../../../../org/w3c/dom/Node.html">Node</A> node1, |
| <A HREF="../../../../org/w3c/dom/Node.html">Node</A> 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>(<A HREF="../../../../org/xml/sax/InputSource.html">InputSource</A> 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>(<A HREF="../../../../org/w3c/dom/Document.html">Document</A> 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" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| <TD><B>Methods inherited from class org.apache.xml.utils.<A HREF="../../../../org/apache/xml/utils/DOMHelper.html">DOMHelper</A></B></TD>
|
| </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" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE>equals,
|
| getClass,
|
| hashCode,
|
| notify,
|
| notifyAll,
|
| toString,
|
| wait,
|
| wait,
|
| wait</CODE></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <P>
|
|
|
| <!-- ============ FIELD DETAIL =========== -->
|
|
|
|
|
| <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=1><FONT SIZE="+2">
|
| <B>Constructor Detail</B></FONT></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <A NAME="DOM2Helper()"><!-- --></A><H3>
|
| DOM2Helper</H3>
|
| <PRE>
|
| public <B>DOM2Helper</B>()</PRE>
|
| <DL>
|
| <DD><B>Deprecated.</B> <DD>Construct an instance.</DL>
|
|
|
| <!-- ============ METHOD DETAIL ========== -->
|
|
|
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| <TD COLSPAN=1><FONT SIZE="+2">
|
| <B>Method Detail</B></FONT></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <A NAME="checkNode(org.w3c.dom.Node)"><!-- --></A><H3>
|
| checkNode</H3>
|
| <PRE>
|
| public void <B>checkNode</B>(<A HREF="../../../../org/w3c/dom/Node.html">Node</A> node) |
| throws <A HREF="../../../../javax/xml/transform/TransformerException.html">TransformerException</A></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.<DD><DL>
|
| <DT><B>Parameters:</B><DD><CODE>node</CODE> - The node to be tested.<DT><B>Throws:</B><DD><A HREF="../../../../javax/xml/transform/TransformerException.html">TransformerException</A> - if the node is not one which this |
| DOM2Helper can support. If we return without throwing the exception, |
| the node is compatable.<DT><B>Usage:</B><DD><i><font size="-1" color="#FF0000"> **For internal use only**</font></i></DD> |
| </DD>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="supportsSAX()"><!-- --></A><H3>
|
| supportsSAX</H3>
|
| <PRE>
|
| public boolean <B>supportsSAX</B>()</PRE>
|
| <DL>
|
| <DD><B>Deprecated.</B> <DD>Returns true if the DOM implementation handled by this helper |
| supports the SAX ContentHandler interface.<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 <B>setDocument</B>(<A HREF="../../../../org/w3c/dom/Document.html">Document</A> doc)</PRE>
|
| <DL>
|
| <DD><B>Deprecated.</B> <DD>Specify which document this helper is currently operating on.<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 <A HREF="../../../../org/w3c/dom/Document.html">Document</A> <B>getDocument</B>()</PRE>
|
| <DL>
|
| <DD><B>Deprecated.</B> <DD>Query which document this helper is currently operating on.<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 <B>parse</B>(<A HREF="../../../../org/xml/sax/InputSource.html">InputSource</A> source) |
| throws <A HREF="../../../../javax/xml/transform/TransformerException.html">TransformerException</A></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><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><A HREF="../../../../javax/xml/transform/TransformerException.html">TransformerException</A> - if any checked exception is thrown.<DT><B>Usage:</B><DD><i><font size="-1" color="#FF0000"> **For internal use only**</font></i></DD> |
| </DD>
|
| </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getElementByID(java.lang.String, org.w3c.dom.Document)"><!-- --></A><H3>
|
| getElementByID</H3>
|
| <PRE>
|
| public <A HREF="../../../../org/w3c/dom/Element.html">Element</A> <B>getElementByID</B>(java.lang.String id, |
| <A HREF="../../../../org/w3c/dom/Document.html">Document</A> 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.<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.<DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xml/utils/DOMHelper.html#getElementByID(java.lang.String, org.w3c.dom.Document)">getElementByID</A> in class <A HREF="../../../../org/apache/xml/utils/DOMHelper.html">DOMHelper</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="isNodeAfter(org.w3c.dom.Node, org.w3c.dom.Node)"><!-- --></A><H3>
|
| isNodeAfter</H3>
|
| <PRE>
|
| public static boolean <B>isNodeAfter</B>(<A HREF="../../../../org/w3c/dom/Node.html">Node</A> node1, |
| <A HREF="../../../../org/w3c/dom/Node.html">Node</A> 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!!!<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 <A HREF="../../../../org/w3c/dom/Node.html">Node</A> <B>getParentOfNode</B>(<A HREF="../../../../org/w3c/dom/Node.html">Node</A> 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.<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 <B>getLocalNameOfNode</B>(<A HREF="../../../../org/w3c/dom/Node.html">Node</A> 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.<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.<DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xml/utils/DOMHelper.html#getLocalNameOfNode(org.w3c.dom.Node)">getLocalNameOfNode</A> in class <A HREF="../../../../org/apache/xml/utils/DOMHelper.html">DOMHelper</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getNamespaceOfNode(org.w3c.dom.Node)"><!-- --></A><H3>
|
| getNamespaceOfNode</H3>
|
| <PRE>
|
| public java.lang.String <B>getNamespaceOfNode</B>(<A HREF="../../../../org/w3c/dom/Node.html">Node</A> 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.<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.<DT><B>Overrides:</B><DD><A HREF="../../../../org/apache/xml/utils/DOMHelper.html#getNamespaceOfNode(org.w3c.dom.Node)">getNamespaceOfNode</A> in class <A HREF="../../../../org/apache/xml/utils/DOMHelper.html">DOMHelper</A></DL>
|
| </DD>
|
| </DL>
|
| <!-- ========= END OF CLASS DATA ========= -->
|
| <HR>
|
|
|
| <!-- ========== START OF NAVBAR ========== -->
|
| <A NAME="navbar_bottom"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
|
| <TR>
|
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
|
| <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"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../org/apache/xml/utils/DOMBuilder.html"><B>NEXT CLASS</B></A></FONT></TD>
|
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
|
| <A HREF="DOM2Helper.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
| </TR>
|
| </TABLE>
|
| <!-- =========== END OF NAVBAR =========== -->
|
|
|
| <HR>
|
| Copyright © 2006 Apache XML Project. All Rights Reserved.
|
| </BODY>
|
| </HTML>
|