| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_391) on Sun Jun 22 17:31:33 IST 2025 --> |
| <title>DOM2Helper</title> |
| <meta name="date" content="2025-06-22"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="DOM2Helper"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":42,"i1":42,"i2":42,"i3":42,"i4":42,"i5":41,"i6":41,"i7":42,"i8":42,"i9":42}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/xml/utils/DefaultErrorHandler.html" title="class in org.apache.xml.utils"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/xml/utils/DOMBuilder.html" title="class in org.apache.xml.utils"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/xml/utils/DOM2Helper.html" target="_top">Frames</a></li> |
| <li><a href="DOM2Helper.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#fields.inherited.from.class.org.apache.xml.utils.DOMHelper">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.xml.utils</div> |
| <h2 title="Class DOM2Helper" class="title">Class DOM2Helper</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../org/apache/xml/utils/DOMHelper.html" title="class in org.apache.xml.utils">org.apache.xml.utils.DOMHelper</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.xml.utils.DOM2Helper</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="block"><span class="deprecationComment">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.</span></div> |
| </div> |
| <br> |
| <pre>public class <span class="typeNameLabel">DOM2Helper</span> |
| extends <a href="../../../../org/apache/xml/utils/DOMHelper.html" title="class in org.apache.xml.utils">DOMHelper</a></pre> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <ul class="blockList"> |
| <li class="blockList"><a name="fields.inherited.from.class.org.apache.xml.utils.DOMHelper"> |
| <!-- --> |
| </a> |
| <h3>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></h3> |
| <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_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></li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/xml/utils/DOM2Helper.html#DOM2Helper--">DOM2Helper</a></span>()</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Construct an instance.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/xml/utils/DOM2Helper.html#checkNode-org.w3c.dom.Node-">checkNode</a></span>(org.w3c.dom.Node node)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Check node to see if it was created by a DOM implementation |
| that this helper is intended to support.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>org.w3c.dom.Document</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/xml/utils/DOM2Helper.html#getDocument--">getDocument</a></span>()</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Query which document this helper is currently operating on.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>org.w3c.dom.Element</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/xml/utils/DOM2Helper.html#getElementByID-java.lang.String-org.w3c.dom.Document-">getElementByID</a></span>(java.lang.String id, |
| org.w3c.dom.Document doc)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Given an XML ID, return the element.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/xml/utils/DOM2Helper.html#getLocalNameOfNode-org.w3c.dom.Node-">getLocalNameOfNode</a></span>(org.w3c.dom.Node n)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Returns the local name of the given node, as defined by the |
| XML Namespaces specification.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/xml/utils/DOM2Helper.html#getNamespaceOfNode-org.w3c.dom.Node-">getNamespaceOfNode</a></span>(org.w3c.dom.Node n)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Returns the Namespace Name (Namespace URI) for the given node.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static org.w3c.dom.Node</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/xml/utils/DOM2Helper.html#getParentOfNode-org.w3c.dom.Node-">getParentOfNode</a></span>(org.w3c.dom.Node node)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Get the XPath-model parent of a node.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/xml/utils/DOM2Helper.html#isNodeAfter-org.w3c.dom.Node-org.w3c.dom.Node-">isNodeAfter</a></span>(org.w3c.dom.Node node1, |
| org.w3c.dom.Node node2)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Figure out whether node2 should be considered as being later |
| in the document than node1, in Document Order as defined |
| by the XPath model.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/xml/utils/DOM2Helper.html#parse-org.xml.sax.InputSource-">parse</a></span>(org.xml.sax.InputSource source)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Parse an XML document.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/xml/utils/DOM2Helper.html#setDocument-org.w3c.dom.Document-">setDocument</a></span>(org.w3c.dom.Document doc)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Specify which document this helper is currently operating on.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/xml/utils/DOM2Helper.html#supportsSAX--">supportsSAX</a></span>()</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Returns true if the DOM implementation handled by this helper |
| supports the SAX ContentHandler interface.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.xml.utils.DOMHelper"> |
| <!-- --> |
| </a> |
| <h3>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></h3> |
| <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></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="DOM2Helper--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>DOM2Helper</h4> |
| <pre>public DOM2Helper()</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Construct an instance.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="checkNode-org.w3c.dom.Node-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>checkNode</h4> |
| <pre>public void checkNode(org.w3c.dom.Node node) |
| throws javax.xml.transform.TransformerException</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">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.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>node</code> - The node to be tested.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <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.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="supportsSAX--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>supportsSAX</h4> |
| <pre>public boolean supportsSAX()</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Returns true if the DOM implementation handled by this helper |
| supports the SAX ContentHandler interface.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true (since Xerces does).</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setDocument-org.w3c.dom.Document-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setDocument</h4> |
| <pre>public void setDocument(org.w3c.dom.Document doc)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Specify which document this helper is currently operating on.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>doc</code> - The DOM Document node for this document.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/xml/utils/DOM2Helper.html#getDocument--"><code>getDocument()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getDocument--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDocument</h4> |
| <pre>public org.w3c.dom.Document getDocument()</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Query which document this helper is currently operating on.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The DOM Document node for this document.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/xml/utils/DOM2Helper.html#setDocument-org.w3c.dom.Document-"><code>setDocument(org.w3c.dom.Document)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="parse-org.xml.sax.InputSource-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>parse</h4> |
| <pre>public void parse(org.xml.sax.InputSource source) |
| throws javax.xml.transform.TransformerException</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">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></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>source</code> - The input source for the top-level of the |
| XML document.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>javax.xml.transform.TransformerException</code> - if any checked exception is thrown.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getElementByID-java.lang.String-org.w3c.dom.Document-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getElementByID</h4> |
| <pre>public org.w3c.dom.Element getElementByID(java.lang.String id, |
| org.w3c.dom.Document doc)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">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.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <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></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>id</code> - The ID to search for, as a String.</dd> |
| <dd><code>doc</code> - The document to search within, as a DOM Document node.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <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.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isNodeAfter-org.w3c.dom.Node-org.w3c.dom.Node-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isNodeAfter</h4> |
| <pre>public static boolean isNodeAfter(org.w3c.dom.Node node1, |
| org.w3c.dom.Node node2)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">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!!!</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>node1</code> - DOM Node to perform position comparison on.</dd> |
| <dd><code>node2</code> - DOM Node to perform position comparison on .</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>false if node2 comes before node1, otherwise return true. |
| You can think of this as |
| <code>(node1.documentOrderPosition <= node2.documentOrderPosition)</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getParentOfNode-org.w3c.dom.Node-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getParentOfNode</h4> |
| <pre>public static org.w3c.dom.Node getParentOfNode(org.w3c.dom.Node node)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">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.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>node</code> - Node to be examined</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <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.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getLocalNameOfNode-org.w3c.dom.Node-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLocalNameOfNode</h4> |
| <pre>public java.lang.String getLocalNameOfNode(org.w3c.dom.Node n)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">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.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <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></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>n</code> - Node to be examined</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>String containing the local name, or null if the node |
| was not assigned a Namespace.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getNamespaceOfNode-org.w3c.dom.Node-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>getNamespaceOfNode</h4> |
| <pre>public java.lang.String getNamespaceOfNode(org.w3c.dom.Node n)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">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.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <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></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>n</code> - Node to be examined</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>String containing the Namespace URI bound to this DOM node |
| at the time the Node was created.</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/xml/utils/DefaultErrorHandler.html" title="class in org.apache.xml.utils"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/xml/utils/DOMBuilder.html" title="class in org.apache.xml.utils"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/xml/utils/DOM2Helper.html" target="_top">Frames</a></li> |
| <li><a href="DOM2Helper.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#fields.inherited.from.class.org.apache.xml.utils.DOMHelper">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |