<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight"><aclass="el"href="classxercesc_1_1DOMNode.html">DOMNode</a> within which the Range begins <dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object. </td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Offset within the starting node of the Range. <ahref="#2fac6cfdf4a53a0a2576ecdb22a9b6db"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight"><aclass="el"href="classxercesc_1_1DOMNode.html">DOMNode</a> within which the Range ends <dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object. </td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Offset within the ending node of the Range. <ahref="#377b108202cf215059f1598666168b20"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">TRUE if the Range is collapsed <dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object. </td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">The deepest common ancestor container of the Range's two boundary-points. <ahref="#69837c26e44c82f917922b25f9239053"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the attributes describing the start of the Range. <ahref="#8eaad84f9c769745f44422a3aec5ee8d"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the attributes describing the end of a Range. <ahref="#33e63dc548fc8f452dc4662fc8ca05dd"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the start position to be before a node. <ahref="#04db3d0ff11e8153214797f618512ca9"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the start position to be after a node. <ahref="#960bd9c6f8fd16b92dc5629bf927424b"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the end position to be before a node. <ahref="#fac8fad87367742b7d8a28d618876d6b"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the end of a Range to be after a node. <ahref="#0a86ad551674e72cf9f7b8e7192d6b57"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Collapse a Range onto one of its boundary-points. <ahref="#c67d1cbebf33de056c856763b2215886"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Select a node and its contents. <ahref="#ad306fc55a88c86089520fea19114937"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Select the contents within a node. <ahref="#fb6889557d50f5aaa76304da409a9f5d"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Compare the boundary-points of two Ranges in a document. <ahref="#c4eae1fd612570ced81e8ca2bf2e1445"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Removes the contents of a Range from the containing document or document fragment without returning a reference to the removed content. <ahref="#151aeca48596eda20500bfe4b1fe50bc"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Moves the contents of a Range from the containing document or document fragment to a new <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a>. <ahref="#36031cc656affc081fd231f4344f4ef6"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Duplicates the contents of a Range. <ahref="#bdc6a6f6174d7148dfba135b09edb850"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Inserts a node into the <aclass="el"href="classxercesc_1_1DOMDocument.html">DOMDocument</a> or <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a> at the start of the Range. <ahref="#e54835ad569bd500cc6166456c069d2f"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Reparents the contents of the Range to the given node and inserts the node at the position of the start of the Range. <ahref="#131a8c953b0e6dfa6abf39ed96551c2a"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Produces a new Range whose boundary-points are equal to the boundary-points of the Range. <ahref="#f8c069b9162a05facb00cadb05baf395"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the contents of a Range as a string. <ahref="#74b794d8751ebc50f97451272f6ea5c3"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Called to indicate that the Range is no longer in use and that the implementation may relinquish any resources associated with this Range. <ahref="#0cd4d64c7e08a3b72e12cd8eb06b6888"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Called to indicate that this Range is no longer in use and that the implementation may relinquish any resources associated with it. <ahref="#bc2f073c570238ebc51d896e068b7333"></a><br></td></tr>
<tr><tdcolspan="2"><br><h2>Protected Member Functions</h2></td></tr>
See also the <ahref="http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113">Document Object Model (DOM) Level 2 Traversal and Range Specification</a>. <dlcompact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
<code>START_TO_START:</code> Compare start boundary-point of <code>sourceRange</code> to start boundary-point of Range on which <code>compareBoundaryPoints</code> is invoked.<p>
<code>START_TO_END:</code> Compare start boundary-point of <code>sourceRange</code> to end boundary-point of Range on which <code>compareBoundaryPoints</code> is invoked.<p>
<code>END_TO_END:</code> Compare end boundary-point of <code>sourceRange</code> to end boundary-point of Range on which <code>compareBoundaryPoints</code> is invoked.<p>
<code>END_TO_START:</code> Compare end boundary-point of <code>sourceRange</code> to start boundary-point of Range on which <code>compareBoundaryPoints</code> is invoked.<p>
<dlcompact><dt><b>Returns:</b></dt><dd>A <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a> that contains content equivalent to this Range. </dd></dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>HIERARCHY_REQUEST_ERR: Raised if a <aclass="el"href="classxercesc_1_1DOMDocumentType.html">DOMDocumentType</a> node would be extracted into the new <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a>. <br>
INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object.</td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object.</td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>toStart</em> </td><td>If TRUE, collapses the Range onto its start; if FALSE, collapses it onto its end. </td></tr>
</table>
</dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object.</td></tr>
Compare the boundary-points of two Ranges in a document.
<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>how</em> </td><td>A code representing the type of comparison, as defined above. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>sourceRange</em> </td><td>The <code>Range</code> on which this current <code>Range</code> is compared to. </td></tr>
</table>
</dl>
<dlcompact><dt><b>Returns:</b></dt><dd>-1, 0 or 1 depending on whether the corresponding boundary-point of the Range is respectively before, equal to, or after the corresponding boundary-point of <code>sourceRange</code>. </dd></dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>WRONG_DOCUMENT_ERR: Raised if the two Ranges are not in the same <aclass="el"href="classxercesc_1_1DOMDocument.html">DOMDocument</a> or <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a>. <br>
INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object.</td></tr>
Removes the contents of a Range from the containing document or document fragment without returning a reference to the removed content.
<p>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>NO_MODIFICATION_ALLOWED_ERR: Raised if any portion of the content of the Range is read-only or any of the nodes that contain any of the content of the Range are read-only. <br>
INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object.</td></tr>
Called to indicate that the Range is no longer in use and that the implementation may relinquish any resources associated with this Range.
<p>
Subsequent calls to any methods or attribute getters on this Range will result in a <code><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></code> being thrown with an error code of <code>INVALID_STATE_ERR</code>. <dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object.</td></tr>
Moves the contents of a Range from the containing document or document fragment to a new <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a>.
<p>
<dlcompact><dt><b>Returns:</b></dt><dd>A <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a> containing the extracted contents. </dd></dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>NO_MODIFICATION_ALLOWED_ERR: Raised if any portion of the content of the Range is read-only or any of the nodes which contain any of the content of the Range are read-only. <br>
HIERARCHY_REQUEST_ERR: Raised if a <aclass="el"href="classxercesc_1_1DOMDocumentType.html">DOMDocumentType</a> node would be extracted into the new <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a>. <br>
INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object.</td></tr>
TRUE if the Range is collapsed <dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object. </td></tr>
The deepest common ancestor container of the Range's two boundary-points.
<p>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object.</td></tr>
<aclass="el"href="classxercesc_1_1DOMNode.html">DOMNode</a> within which the Range ends <dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object.</td></tr>
<aclass="el"href="classxercesc_1_1DOMNode.html">DOMNode</a> within which the Range begins <dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object.</td></tr>
Inserts a node into the <aclass="el"href="classxercesc_1_1DOMDocument.html">DOMDocument</a> or <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a> at the start of the Range.
<p>
If the container is a <aclass="el"href="classxercesc_1_1DOMText.html">DOMText</a> node, this will be split at the start of the Range (as if the <aclass="el"href="classxercesc_1_1DOMText.html">DOMText</a> node's splitText method was performed at the insertion point) and the insertion will occur between the two resulting <aclass="el"href="classxercesc_1_1DOMText.html">DOMText</a> nodes. Adjacent <aclass="el"href="classxercesc_1_1DOMText.html">DOMText</a> nodes will not be automatically merged. If the node to be inserted is a <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a> node, the children will be inserted rather than the <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a> node itself. <dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>newNode</em> </td><td>The node to insert at the start of the Range </td></tr>
</table>
</dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>NO_MODIFICATION_ALLOWED_ERR: Raised if an ancestor container of the start of the Range is read-only. <br>
WRONG_DOCUMENT_ERR: Raised if <code>newNode</code> and the container of the start of the Range were not created from the same document. <br>
HIERARCHY_REQUEST_ERR: Raised if the container of the start of the Range is of a type that does not allow children of the type of <code>newNode</code> or if <code>newNode</code> is an ancestor of the container. <br>
INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMRangeException.html">DOMRangeException</a></em> </td><td>INVALID_NODE_TYPE_ERR: Raised if <code>newNode</code> is an <aclass="el"href="classxercesc_1_1DOMAttr.html">DOMAttr</a>, <aclass="el"href="classxercesc_1_1DOMEntity.html">DOMEntity</a>, <aclass="el"href="classxercesc_1_1DOMNotation.html">DOMNotation</a>, or <aclass="el"href="classxercesc_1_1DOMDocument.html">DOMDocument</a> node.</td></tr>
Called to indicate that this Range is no longer in use and that the implementation may relinquish any resources associated with it.
<p>
(<aclass="el"href="classxercesc_1_1DOMRange.html#bc2f073c570238ebc51d896e068b7333">release()</a> will call <aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a> where appropriate)<p>
Access to a released object will lead to unexpected result. </td>
<tr><tdvalign="top"></td><tdvalign="top"><em>refNode</em> </td><td>The node to select. </td></tr>
</table>
</dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMRangeException.html">DOMRangeException</a></em> </td><td>INVALID_NODE_TYPE_ERR: Raised if an ancestor of <code>refNode</code> is an <aclass="el"href="classxercesc_1_1DOMEntity.html">DOMEntity</a>, <aclass="el"href="classxercesc_1_1DOMNotation.html">DOMNotation</a> or <aclass="el"href="classxercesc_1_1DOMDocumentType.html">DOMDocumentType</a> node or if <code>refNode</code> is a <aclass="el"href="classxercesc_1_1DOMDocument.html">DOMDocument</a>, <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a>, <aclass="el"href="classxercesc_1_1DOMAttr.html">DOMAttr</a>, <aclass="el"href="classxercesc_1_1DOMEntity.html">DOMEntity</a>, or <aclass="el"href="classxercesc_1_1DOMNotation.html">DOMNotation</a> node. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object. <br>
WRONG_DOCUMENT_ERR: Raised if <code>refNode</code> was created from a different document than the one that created this range.</td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>refNode</em> </td><td><aclass="el"href="classxercesc_1_1DOMNode.html">DOMNode</a> to select from </td></tr>
</table>
</dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMRangeException.html">DOMRangeException</a></em> </td><td>INVALID_NODE_TYPE_ERR: Raised if <code>refNode</code> or an ancestor of <code>refNode</code> is an <aclass="el"href="classxercesc_1_1DOMEntity.html">DOMEntity</a>, <aclass="el"href="classxercesc_1_1DOMNotation.html">DOMNotation</a> or <aclass="el"href="classxercesc_1_1DOMDocumentType.html">DOMDocumentType</a> node. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object. <br>
WRONG_DOCUMENT_ERR: Raised if <code>refNode</code> was created from a different document than the one that created this range.</td></tr>
Sets the attributes describing the end of a Range.
<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>refNode</em> </td><td>The <code>refNode</code> value. This parameter must be different from <code>null</code>. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMRangeException.html">DOMRangeException</a></em> </td><td>INVALID_NODE_TYPE_ERR: Raised if <code>refNode</code> or an ancestor of <code>refNode</code> is an <aclass="el"href="classxercesc_1_1DOMEntity.html">DOMEntity</a>, <aclass="el"href="classxercesc_1_1DOMNotation.html">DOMNotation</a>, or <aclass="el"href="classxercesc_1_1DOMDocumentType.html">DOMDocumentType</a> node. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INDEX_SIZE_ERR: Raised if <code>offset</code> is negative or greater than the number of child units in <code>refNode</code>. Child units are 16-bit units if <code>refNode</code> is a type of <aclass="el"href="classxercesc_1_1DOMCharacterData.html">DOMCharacterData</a> node (e.g., a <aclass="el"href="classxercesc_1_1DOMText.html">DOMText</a> or <aclass="el"href="classxercesc_1_1DOMComment.html">DOMComment</a> node) or a <aclass="el"href="classxercesc_1_1DOMProcessingInstruction.html">DOMProcessingInstruction</a> node. Child units are Nodes in all other cases. <br>
INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object. <br>
WRONG_DOCUMENT_ERR: Raised if <code>refNode</code> was created from a different document than the one that created this range.</td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>refNode</em> </td><td>Range ends after <code>refNode</code>. </td></tr>
</table>
</dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMRangeException.html">DOMRangeException</a></em> </td><td>INVALID_NODE_TYPE_ERR: Raised if the root container of <code>refNode</code> is not a <aclass="el"href="classxercesc_1_1DOMAttr.html">DOMAttr</a>, <aclass="el"href="classxercesc_1_1DOMDocument.html">DOMDocument</a> or <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a> node or if <code>refNode</code> is a <aclass="el"href="classxercesc_1_1DOMDocument.html">DOMDocument</a>, <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a>, <aclass="el"href="classxercesc_1_1DOMAttr.html">DOMAttr</a>, <aclass="el"href="classxercesc_1_1DOMEntity.html">DOMEntity</a>, or <aclass="el"href="classxercesc_1_1DOMNotation.html">DOMNotation</a> node. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object. <br>
WRONG_DOCUMENT_ERR: Raised if <code>refNode</code> was created from a different document than the one that created this range.</td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>refNode</em> </td><td>Range ends before <code>refNode</code></td></tr>
</table>
</dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMRangeException.html">DOMRangeException</a></em> </td><td>INVALID_NODE_TYPE_ERR: Raised if the root container of <code>refNode</code> is not an <aclass="el"href="classxercesc_1_1DOMAttr.html">DOMAttr</a>, <aclass="el"href="classxercesc_1_1DOMDocument.html">DOMDocument</a>, or <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a> node or if <code>refNode</code> is a <aclass="el"href="classxercesc_1_1DOMDocument.html">DOMDocument</a>, <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a>, <aclass="el"href="classxercesc_1_1DOMAttr.html">DOMAttr</a>, <aclass="el"href="classxercesc_1_1DOMEntity.html">DOMEntity</a>, or <aclass="el"href="classxercesc_1_1DOMNotation.html">DOMNotation</a> node. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object. <br>
WRONG_DOCUMENT_ERR: Raised if <code>refNode</code> was created from a different document than the one that created this range.</td></tr>
Sets the attributes describing the start of the Range.
<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>refNode</em> </td><td>The <code>refNode</code> value. This parameter must be different from <code>null</code>. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMRangeException.html">DOMRangeException</a></em> </td><td>INVALID_NODE_TYPE_ERR: Raised if <code>refNode</code> or an ancestor of <code>refNode</code> is an <aclass="el"href="classxercesc_1_1DOMEntity.html">DOMEntity</a>, <aclass="el"href="classxercesc_1_1DOMNotation.html">DOMNotation</a>, or <aclass="el"href="classxercesc_1_1DOMDocumentType.html">DOMDocumentType</a> node. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INDEX_SIZE_ERR: Raised if <code>offset</code> is negative or greater than the number of child units in <code>refNode</code>. Child units are 16-bit units if <code>refNode</code> is a type of <aclass="el"href="classxercesc_1_1DOMCharacterData.html">DOMCharacterData</a> node (e.g., a <aclass="el"href="classxercesc_1_1DOMText.html">DOMText</a> or <aclass="el"href="classxercesc_1_1DOMComment.html">DOMComment</a> node) or a <aclass="el"href="classxercesc_1_1DOMProcessingInstruction.html">DOMProcessingInstruction</a> node. Child units are Nodes in all other cases. <br>
INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object. <br>
WRONG_DOCUMENT_ERR: Raised if <code>refNode</code> was created from a different document than the one that created this range.</td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>refNode</em> </td><td>Range starts after <code>refNode</code></td></tr>
</table>
</dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMRangeException.html">DOMRangeException</a></em> </td><td>INVALID_NODE_TYPE_ERR: Raised if the root container of <code>refNode</code> is not an <aclass="el"href="classxercesc_1_1DOMAttr.html">DOMAttr</a>, <aclass="el"href="classxercesc_1_1DOMDocument.html">DOMDocument</a>, or <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a> node or if <code>refNode</code> is a <aclass="el"href="classxercesc_1_1DOMDocument.html">DOMDocument</a>, <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a>, <aclass="el"href="classxercesc_1_1DOMAttr.html">DOMAttr</a>, <aclass="el"href="classxercesc_1_1DOMEntity.html">DOMEntity</a>, or <aclass="el"href="classxercesc_1_1DOMNotation.html">DOMNotation</a> node. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object. <br>
WRONG_DOCUMENT_ERR: Raised if <code>refNode</code> was created from a different document than the one that created this range.</td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>refNode</em> </td><td>Range starts before <code>refNode</code></td></tr>
</table>
</dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMRangeException.html">DOMRangeException</a></em> </td><td>INVALID_NODE_TYPE_ERR: Raised if the root container of <code>refNode</code> is not an <aclass="el"href="classxercesc_1_1DOMAttr.html">DOMAttr</a>, <aclass="el"href="classxercesc_1_1DOMDocument.html">DOMDocument</a>, or <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a> node or if <code>refNode</code> is a <aclass="el"href="classxercesc_1_1DOMDocument.html">DOMDocument</a>, <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a>, <aclass="el"href="classxercesc_1_1DOMAttr.html">DOMAttr</a>, <aclass="el"href="classxercesc_1_1DOMEntity.html">DOMEntity</a>, or <aclass="el"href="classxercesc_1_1DOMNotation.html">DOMNotation</a> node. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object. <br>
WRONG_DOCUMENT_ERR: Raised if <code>refNode</code> was created from a different document than the one that created this range.</td></tr>
Reparents the contents of the Range to the given node and inserts the node at the position of the start of the Range.
<p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>newParent</em> </td><td>The node to surround the contents with. </td></tr>
</table>
</dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>NO_MODIFICATION_ALLOWED_ERR: Raised if an ancestor container of either boundary-point of the Range is read-only. <br>
WRONG_DOCUMENT_ERR: Raised if <code> newParent</code> and the container of the start of the Range were not created from the same document. <br>
HIERARCHY_REQUEST_ERR: Raised if the container of the start of the Range is of a type that does not allow children of the type of <code>newParent</code> or if <code>newParent</code> is an ancestor of the container or if <code>node</code> would end up with a child node of a type not allowed by the type of <code>node</code>. <br>
INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMRangeException.html">DOMRangeException</a></em> </td><td>BAD_BOUNDARYPOINTS_ERR: Raised if the Range partially selects a non-text node. <br>
INVALID_NODE_TYPE_ERR: Raised if <code> node</code> is an <aclass="el"href="classxercesc_1_1DOMAttr.html">DOMAttr</a>, <aclass="el"href="classxercesc_1_1DOMEntity.html">DOMEntity</a>, <aclass="el"href="classxercesc_1_1DOMDocumentType.html">DOMDocumentType</a>, <aclass="el"href="classxercesc_1_1DOMNotation.html">DOMNotation</a>, <aclass="el"href="classxercesc_1_1DOMDocument.html">DOMDocument</a>, or <aclass="el"href="classxercesc_1_1DOMDocumentFragment.html">DOMDocumentFragment</a> node.</td></tr>
This string contains only the data characters, not any markup. <dlcompact><dt><b>Returns:</b></dt><dd>The contents of the Range. </dd></dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_STATE_ERR: Raised if <code><aclass="el"href="classxercesc_1_1DOMRange.html#0cd4d64c7e08a3b72e12cd8eb06b6888">detach()</a></code> has already been invoked on this object.</td></tr>