1773 lines
98 KiB
HTML
1773 lines
98 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
<title>XQilla Simple API: xercesc::DOMDocument Class Reference</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<!-- Generated by Doxygen 1.4.6 -->
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
</ul></div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul></div>
|
|
<div class="nav">
|
|
<a class="el" href="namespacexercesc.html">xercesc</a>::<a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></div>
|
|
<h1>xercesc::DOMDocument Class Reference</h1><!-- doxytag: class="xercesc::DOMDocument" --><!-- doxytag: inherits="xercesc::DOMNode" -->The <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code> interface represents the entire XML document.
|
|
<a href="#_details">More...</a>
|
|
<p>
|
|
<code>#include <<a class="el" href="DOMDocument_8hpp-source.html">DOMDocument.hpp</a>></code>
|
|
<p>
|
|
Inheritance diagram for xercesc::DOMDocument:<p><center><img src="classxercesc_1_1DOMDocument__inherit__graph.png" border="0" usemap="#xercesc_1_1DOMDocument__inherit__map" alt="Inheritance graph"></center>
|
|
<map name="xercesc_1_1DOMDocument__inherit__map">
|
|
<area href="classxercesc_1_1DOMNode.html" shape="rect" coords="22,9,161,33" alt="">
|
|
</map>
|
|
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classxercesc_1_1DOMDocument-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td></td></tr>
|
|
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Destructor</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#2e870121ac366f158c770563aecf2c3b">~DOMDocument</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#2e870121ac366f158c770563aecf2c3b"></a><br></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 1</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMElement * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#e85ccc2bef950fc7a97ed628edfd188e">createElement</a> (const XMLCh *tagName)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an element of the type specified. <a href="#e85ccc2bef950fc7a97ed628edfd188e"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMDocumentFragment * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#9cb25f221e8ce1cd40951b4ed3ec113d">createDocumentFragment</a> ()=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an empty <code>DOMDocumentFragment</code> object. <a href="#9cb25f221e8ce1cd40951b4ed3ec113d"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMText * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#d22c9611afa0947e1b0699c3d879058f">createTextNode</a> (const XMLCh *data)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a <code>DOMText</code> node given the specified string. <a href="#d22c9611afa0947e1b0699c3d879058f"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMComment * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#5169031ed4289d87084e9c662f198ab6">createComment</a> (const XMLCh *data)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a <code>DOMComment</code> node given the specified string. <a href="#5169031ed4289d87084e9c662f198ab6"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMCDATASection * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#4eb2a430dd3c77d40000594eb25a80f9">createCDATASection</a> (const XMLCh *data)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a <code>DOMCDATASection</code> node whose value is the specified string. <a href="#4eb2a430dd3c77d40000594eb25a80f9"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMProcessingInstruction * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#65f8ff9afe0dd0038138859a10ad6ece">createProcessingInstruction</a> (const XMLCh *target, const XMLCh *data)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a <code>DOMProcessingInstruction</code> node given the specified name and data strings. <a href="#65f8ff9afe0dd0038138859a10ad6ece"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMAttr * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#7288d0935ff48866916dcda2a050d0ca">createAttribute</a> (const XMLCh *name)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an <code>DOMAttr</code> of the given name. <a href="#7288d0935ff48866916dcda2a050d0ca"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMEntityReference * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#8861289d08c5efc973316cbf4130d9c0">createEntityReference</a> (const XMLCh *name)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an <code>DOMEntityReference</code> object. <a href="#8861289d08c5efc973316cbf4130d9c0"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMDocumentType * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#698a34a6561e2ecf2883e43d10e2e9a4">getDoctype</a> () const =0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The Document Type Declaration (see <code>DOMDocumentType</code>) associated with this document. <a href="#698a34a6561e2ecf2883e43d10e2e9a4"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMImplementation * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#707639b27e69e69f8cd032049ce2e34e">getImplementation</a> () const =0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The <code>DOMImplementation</code> object that handles this document. <a href="#707639b27e69e69f8cd032049ce2e34e"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMElement * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#09709e8fef5e0eeec5a9378e5aa69af1">getDocumentElement</a> () const =0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">This is a convenience attribute that allows direct access to the child node that is the root element of the document. <a href="#09709e8fef5e0eeec5a9378e5aa69af1"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMNodeList * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#af893c3414d8c80270a31e5079bb6912">getElementsByTagName</a> (const XMLCh *tagname) const =0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a <code>DOMNodeList</code> of all the <code>DOMElement(s)</code> with a given tag name in the order in which they are encountered in a preorder traversal of the <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code> tree. <a href="#af893c3414d8c80270a31e5079bb6912"></a><br></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 2.</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#365c7b839a25e4a8704a94791a772529">importNode</a> (<a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> *importedNode, bool deep)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Imports a node from another document to this document. <a href="#365c7b839a25e4a8704a94791a772529"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMElement * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#57ad839d6e17bc10d0b9239b74b49444">createElementNS</a> (const XMLCh *namespaceURI, const XMLCh *qualifiedName)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an element of the given qualified name and namespace URI. <a href="#57ad839d6e17bc10d0b9239b74b49444"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMAttr * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#68f4951e21f37a4cc1cde7d7a88bf242">createAttributeNS</a> (const XMLCh *namespaceURI, const XMLCh *qualifiedName)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an attribute of the given qualified name and namespace URI. <a href="#68f4951e21f37a4cc1cde7d7a88bf242"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMNodeList * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#76a0638aff510d4c6db4ffadd942735c">getElementsByTagNameNS</a> (const XMLCh *namespaceURI, const XMLCh *localName) const =0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a <code>DOMNodeList</code> of all the <code>DOMElement(s)</code> with a given local name and namespace URI in the order in which they are encountered in a preorder traversal of the <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code> tree. <a href="#76a0638aff510d4c6db4ffadd942735c"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMElement * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#dedb2f19695a35b83fde6a584d4b748f">getElementById</a> (const XMLCh *elementId) const =0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the <code>DOMElement</code> whose <code>ID</code> is given by <code>elementId</code>. <a href="#dedb2f19695a35b83fde6a584d4b748f"></a><br></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 3.</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const XMLCh * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#6afd1ee1ba1954733f2e091cbb7f32d4">getActualEncoding</a> () const =0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">An attribute specifying the actual encoding of this document. <a href="#6afd1ee1ba1954733f2e091cbb7f32d4"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#3d2af58cafa8e1777d67dadff76ab999">setActualEncoding</a> (const XMLCh *actualEncoding)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">An attribute specifying the actual encoding of this document. <a href="#3d2af58cafa8e1777d67dadff76ab999"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const XMLCh * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#04d71e864e9297722327cfefa530846a">getEncoding</a> () const =0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">An attribute specifying, as part of the XML declaration, the encoding of this document. <a href="#04d71e864e9297722327cfefa530846a"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#ec887c9769d162b2b03c7883904f93b6">setEncoding</a> (const XMLCh *encoding)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">An attribute specifying, as part of the XML declaration, the encoding of this document. <a href="#ec887c9769d162b2b03c7883904f93b6"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#bbed38d415330cf9a630254fd728d0f9">getStandalone</a> () const =0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">An attribute specifying, as part of the XML declaration, whether this document is standalone. <a href="#bbed38d415330cf9a630254fd728d0f9"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#6e4ed89a40f3878fa99957a2ca9441c8">setStandalone</a> (bool standalone)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">An attribute specifying, as part of the XML declaration, whether this document is standalone. <a href="#6e4ed89a40f3878fa99957a2ca9441c8"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const XMLCh * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#d00469db0210af586abd65d17ecc71a7">getVersion</a> () const =0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">An attribute specifying, as part of the XML declaration, the version number of this document. <a href="#d00469db0210af586abd65d17ecc71a7"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#57f68712afb2ecc68c37fe5da970a964">setVersion</a> (const XMLCh *version)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">An attribute specifying, as part of the XML declaration, the version number of this document. <a href="#57f68712afb2ecc68c37fe5da970a964"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const XMLCh * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#fe21d6a1919ada2ab34f3f977b25b5e7">getDocumentURI</a> () const =0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The location of the document or <code>null</code> if undefined. <a href="#fe21d6a1919ada2ab34f3f977b25b5e7"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#660099866e9add0a1e1dd1f97c05a2e5">setDocumentURI</a> (const XMLCh *documentURI)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The location of the document or <code>null</code> if undefined. <a href="#660099866e9add0a1e1dd1f97c05a2e5"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#cba504f87d55e1de05af8a3c3757b6e1">getStrictErrorChecking</a> () const =0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">An attribute specifying whether errors checking is enforced or not. <a href="#cba504f87d55e1de05af8a3c3757b6e1"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#cd3e1baf80b464f2450d0fda8d365e9e">setStrictErrorChecking</a> (bool strictErrorChecking)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">An attribute specifying whether errors checking is enforced or not. <a href="#cd3e1baf80b464f2450d0fda8d365e9e"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#a0a8882293363c811c0ff125b2c1c45d">renameNode</a> (<a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> *n, const XMLCh *namespaceURI, const XMLCh *name)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Rename an existing node. <a href="#a0a8882293363c811c0ff125b2c1c45d"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#f45712bf8cda8015cbe97d39dd196284">adoptNode</a> (<a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> *source)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Changes the <code>ownerDocument</code> of a node, its children, as well as the attached attribute nodes if there are any. <a href="#f45712bf8cda8015cbe97d39dd196284"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#c4a3e3ffb33ce907f211d216b356f8fb">normalizeDocument</a> ()=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">This method acts as if the document was going through a save and load cycle, putting the document in a "normal" form. <a href="#c4a3e3ffb33ce907f211d216b356f8fb"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMConfiguration * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#07926b71a2362a1e2f7f648005103f30">getDOMConfiguration</a> () const =0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The configuration used when Document.normalizeDocument is invoked. <a href="#07926b71a2362a1e2f7f648005103f30"></a><br></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Non-standard extension</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMEntity * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#f20f740c1124ea064c6a1b4543b08078">createEntity</a> (const XMLCh *name)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Non-standard extension. <a href="#f20f740c1124ea064c6a1b4543b08078"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMDocumentType * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#1053258f824ade183b50f7d645048e56">createDocumentType</a> (const XMLCh *name)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Non-standard extension. <a href="#1053258f824ade183b50f7d645048e56"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMDocumentType * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#fba31cc58c4334720a19c3ff845aaa5a">createDocumentType</a> (const XMLCh *qName, const XMLCh *, const XMLCh *)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMNotation * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#510813f689dcc51325653e8a212174e9">createNotation</a> (const XMLCh *name)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Non-standard extension. <a href="#510813f689dcc51325653e8a212174e9"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual DOMElement * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#9750dafc98bfbd9765bb08aed116f398">createElementNS</a> (const XMLCh *namespaceURI, const XMLCh *qualifiedName, const XMLSSize_t lineNum, const XMLSSize_t columnNum)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Non-standard extension. <a href="#9750dafc98bfbd9765bb08aed116f398"></a><br></td></tr>
|
|
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Hidden constructors</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocument.html#93e8dc9c007b8f1071dec11af3330f88">DOMDocument</a> ()</td></tr>
|
|
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
The <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code> interface represents the entire XML document.
|
|
<p>
|
|
Conceptually, it is the root of the document tree, and provides the primary access to the document's data. <p>
|
|
Since elements, text nodes, comments, processing instructions, etc. cannot exist outside the context of a <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code>, the <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code> interface also contains the factory methods needed to create these objects. The <code><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a></code> objects created have a <code>ownerDocument</code> attribute which associates them with the <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code> within whose context they were created. <p>
|
|
See also the <a href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113">Document Object Model (DOM) Level 2 Core Specification</a>.
|
|
<p>
|
|
<hr><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" name="93e8dc9c007b8f1071dec11af3330f88"></a><!-- doxytag: member="xercesc::DOMDocument::DOMDocument" ref="93e8dc9c007b8f1071dec11af3330f88" args="()" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">xercesc::DOMDocument::DOMDocument </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="2e870121ac366f158c770563aecf2c3b"></a><!-- doxytag: member="xercesc::DOMDocument::~DOMDocument" ref="2e870121ac366f158c770563aecf2c3b" args="()" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual xercesc::DOMDocument::~DOMDocument </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Destructor.
|
|
<p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr><h2>Member Function Documentation</h2>
|
|
<a class="anchor" name="f45712bf8cda8015cbe97d39dd196284"></a><!-- doxytag: member="xercesc::DOMDocument::adoptNode" ref="f45712bf8cda8015cbe97d39dd196284" args="(DOMNode *source)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMDocument::adoptNode </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top"><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>source</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Changes the <code>ownerDocument</code> of a node, its children, as well as the attached attribute nodes if there are any.
|
|
<p>
|
|
If the node has a parent it is first removed from its parent child list. This effectively allows moving a subtree from one document to another. The following list describes the specifics for each type of node.<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<dl>
|
|
<dt>ATTRIBUTE_NODE </dt>
|
|
<dd>The <code>ownerElement</code> attribute is set to <code>null</code> and the <code>specified</code> flag is set to <code>true</code> on the adopted <code>DOMAttr</code>. The descendants of the source <code>DOMAttr</code> are recursively adopted. </dd>
|
|
<dt>DOCUMENT_FRAGMENT_NODE </dt>
|
|
<dd>The descendants of the source node are recursively adopted. </dd>
|
|
<dt>DOCUMENT_NODE </dt>
|
|
<dd><code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code> nodes cannot be adopted. </dd>
|
|
<dt>DOCUMENT_TYPE_NODE </dt>
|
|
<dd><code>DOMDocumentType</code> nodes cannot be adopted. </dd>
|
|
<dt>ELEMENT_NODE </dt>
|
|
<dd>Specified attribute nodes of the source element are adopted, and the generated <code>DOMAttr</code> nodes. Default attributes are discarded, though if the document being adopted into defines default attributes for this element name, those are assigned. The descendants of the source element are recursively adopted. </dd>
|
|
<dt>ENTITY_NODE </dt>
|
|
<dd><code>DOMEntity</code> nodes cannot be adopted. </dd>
|
|
<dt>ENTITY_REFERENCE_NODE </dt>
|
|
<dd>Only the <code>DOMEntityReference</code> node itself is adopted, the descendants are discarded, since the source and destination documents might have defined the entity differently. If the document being imported into provides a definition for this entity name, its value is assigned. </dd>
|
|
<dt>NOTATION_NODE </dt>
|
|
<dd><code>DOMNotation</code> nodes cannot be adopted. </dd>
|
|
<dt>PROCESSING_INSTRUCTION_NODE, TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE </dt>
|
|
<dd>These nodes can all be adopted. No specifics. </dd>
|
|
</dl>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>source</em> </td><td>The node to move into this document. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>The adopted node, or <code>null</code> if this operation fails, such as when the source node comes from a different implementation. </dd></dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>DOMException</em> </td><td>NOT_SUPPORTED_ERR: Raised if the source node is of type <code>DOCUMENT</code>, <code>DOCUMENT_TYPE</code>. <br>
|
|
NO_MODIFICATION_ALLOWED_ERR: Raised when the source node is readonly. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="7288d0935ff48866916dcda2a050d0ca"></a><!-- doxytag: member="xercesc::DOMDocument::createAttribute" ref="7288d0935ff48866916dcda2a050d0ca" args="(const XMLCh *name)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMAttr* xercesc::DOMDocument::createAttribute </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>name</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Creates an <code>DOMAttr</code> of the given name.
|
|
<p>
|
|
Note that the <code>DOMAttr</code> instance can then be set on an <code>DOMElement</code> using the <code>setAttributeNode</code> method. <br>
|
|
To create an attribute with a qualified name and namespace URI, use the <code>createAttributeNS</code> method. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the attribute. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>A new <code>DOMAttr</code> object with the <code>nodeName</code> attribute set to <code>name</code>, and <code>localName</code>, <code>prefix</code>, and <code>namespaceURI</code> set to <code>null</code>. The value of the attribute is the empty string. </dd></dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>DOMException</em> </td><td>INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="68f4951e21f37a4cc1cde7d7a88bf242"></a><!-- doxytag: member="xercesc::DOMDocument::createAttributeNS" ref="68f4951e21f37a4cc1cde7d7a88bf242" args="(const XMLCh *namespaceURI, const XMLCh *qualifiedName)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMAttr* xercesc::DOMDocument::createAttributeNS </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname" nowrap> <em>namespaceURI</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>const XMLCh * </td>
|
|
<td class="mdname" nowrap> <em>qualifiedName</em></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Creates an attribute of the given qualified name and namespace URI.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>namespaceURI</em> </td><td>The namespace URI of the attribute to create. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>qualifiedName</em> </td><td>The qualified name of the attribute to instantiate. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>A new <code>DOMAttr</code> object with the following attributes: <table border="1" cellspacing="3" cellpadding="3">
|
|
<tr>
|
|
<td valign="top" rowspan="1" colspan="1"><code>Attribute</code> </td><td valign="top" rowspan="1" colspan="1"><code>Value</code> </td></tr>
|
|
<tr>
|
|
<td valign="top" rowspan="1" colspan="1"><code>DOMNode.nodeName</code> </td><td valign="top" rowspan="1" colspan="1">qualifiedName </td></tr>
|
|
<tr>
|
|
<td valign="top" rowspan="1" colspan="1"><code>DOMNode.namespaceURI</code> </td><td valign="top" rowspan="1" colspan="1"><code>namespaceURI</code> </td></tr>
|
|
<tr>
|
|
<td valign="top" rowspan="1" colspan="1"><code>DOMNode.prefix</code> </td><td valign="top" rowspan="1" colspan="1">prefix, extracted from <code>qualifiedName</code>, or <code>null</code> if there is no prefix </td></tr>
|
|
<tr>
|
|
<td valign="top" rowspan="1" colspan="1"><code>DOMNode.localName</code> </td><td valign="top" rowspan="1" colspan="1">local name, extracted from <code>qualifiedName</code> </td></tr>
|
|
<tr>
|
|
<td valign="top" rowspan="1" colspan="1"><code>DOMAttr.name</code> </td><td valign="top" rowspan="1" colspan="1"><code>qualifiedName</code> </td></tr>
|
|
<tr>
|
|
<td valign="top" rowspan="1" colspan="1"><code>DOMNode.nodeValue</code> </td><td valign="top" rowspan="1" colspan="1">the empty string </td></tr>
|
|
</table>
|
|
</dd></dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>DOMException</em> </td><td>INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character, per the XML 1.0 specification . <br>
|
|
NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is malformed per the Namespaces in XML specification, if the <code>qualifiedName</code> has a prefix and the <code>namespaceURI</code> is <code>null</code>, if the <code>qualifiedName</code> has a prefix that is "xml" and the <code>namespaceURI</code> is different from " <a href="http://www.w3.org/XML/1998/namespace">http://www.w3.org/XML/1998/namespace</a>", or if the <code>qualifiedName</code>, or its prefix, is "xmlns" and the <code>namespaceURI</code> is different from " <a href="http://www.w3.org/2000/xmlns/">http://www.w3.org/2000/xmlns/</a>". <br>
|
|
NOT_SUPPORTED_ERR: Always thrown if the current document does not support the <code>"XML"</code> feature, since namespaces were defined by XML. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="4eb2a430dd3c77d40000594eb25a80f9"></a><!-- doxytag: member="xercesc::DOMDocument::createCDATASection" ref="4eb2a430dd3c77d40000594eb25a80f9" args="(const XMLCh *data)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMCDATASection* xercesc::DOMDocument::createCDATASection </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>data</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Creates a <code>DOMCDATASection</code> node whose value is the specified string.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>The data for the <code>DOMCDATASection</code> contents. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>The new <code>DOMCDATASection</code> object. </dd></dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="5169031ed4289d87084e9c662f198ab6"></a><!-- doxytag: member="xercesc::DOMDocument::createComment" ref="5169031ed4289d87084e9c662f198ab6" args="(const XMLCh *data)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMComment* xercesc::DOMDocument::createComment </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>data</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Creates a <code>DOMComment</code> node given the specified string.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>The data for the node. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>The new <code>DOMComment</code> object. </dd></dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="9cb25f221e8ce1cd40951b4ed3ec113d"></a><!-- doxytag: member="xercesc::DOMDocument::createDocumentFragment" ref="9cb25f221e8ce1cd40951b4ed3ec113d" args="()=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMDocumentFragment* xercesc::DOMDocument::createDocumentFragment </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Creates an empty <code>DOMDocumentFragment</code> object.
|
|
<p>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>A new <code>DOMDocumentFragment</code>. </dd></dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="fba31cc58c4334720a19c3ff845aaa5a"></a><!-- doxytag: member="xercesc::DOMDocument::createDocumentType" ref="fba31cc58c4334720a19c3ff845aaa5a" args="(const XMLCh *qName, const XMLCh *, const XMLCh *)" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMDocumentType* xercesc::DOMDocument::createDocumentType </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname" nowrap> <em>qName</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>const XMLCh * </td>
|
|
<td class="mdname" nowrap>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>const XMLCh * </td>
|
|
<td class="mdname" nowrap></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="1053258f824ade183b50f7d645048e56"></a><!-- doxytag: member="xercesc::DOMDocument::createDocumentType" ref="1053258f824ade183b50f7d645048e56" args="(const XMLCh *name)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMDocumentType* xercesc::DOMDocument::createDocumentType </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>name</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Non-standard extension.
|
|
<p>
|
|
Create a DOMDocumentType node. <dl compact><dt><b>Returns:</b></dt><dd>A <code>DOMDocumentType</code> that references the newly created DOMDocumentType node. </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="e85ccc2bef950fc7a97ed628edfd188e"></a><!-- doxytag: member="xercesc::DOMDocument::createElement" ref="e85ccc2bef950fc7a97ed628edfd188e" args="(const XMLCh *tagName)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMElement* xercesc::DOMDocument::createElement </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>tagName</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Creates an element of the type specified.
|
|
<p>
|
|
Note that the instance returned implements the <code>DOMElement</code> interface, so attributes can be specified directly on the returned object. <br>
|
|
In addition, if there are known attributes with default values, <code>DOMAttr</code> nodes representing them are automatically created and attached to the element. <br>
|
|
To create an element with a qualified name and namespace URI, use the <code>createElementNS</code> method. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>tagName</em> </td><td>The name of the element type to instantiate. For XML, this is case-sensitive. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>A new <code>DOMElement</code> object with the <code>nodeName</code> attribute set to <code>tagName</code>, and <code>localName</code>, <code>prefix</code>, and <code>namespaceURI</code> set to <code>null</code>. </dd></dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>DOMException</em> </td><td>INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="9750dafc98bfbd9765bb08aed116f398"></a><!-- doxytag: member="xercesc::DOMDocument::createElementNS" ref="9750dafc98bfbd9765bb08aed116f398" args="(const XMLCh *namespaceURI, const XMLCh *qualifiedName, const XMLSSize_t lineNum, const XMLSSize_t columnNum)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMElement* xercesc::DOMDocument::createElementNS </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname" nowrap> <em>namespaceURI</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>const XMLCh * </td>
|
|
<td class="mdname" nowrap> <em>qualifiedName</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>const XMLSSize_t </td>
|
|
<td class="mdname" nowrap> <em>lineNum</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>const XMLSSize_t </td>
|
|
<td class="mdname" nowrap> <em>columnNum</em></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Non-standard extension.
|
|
<p>
|
|
Creates an element of the given qualified name and namespace URI, and also stores line/column number info. Used by internally XSDXercesDOMParser during schema traversal.<p>
|
|
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classxercesc_1_1DOMDocument.html#57ad839d6e17bc10d0b9239b74b49444">createElementNS(const XMLCh *namespaceURI, const XMLCh *qualifiedName)</a> </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="57ad839d6e17bc10d0b9239b74b49444"></a><!-- doxytag: member="xercesc::DOMDocument::createElementNS" ref="57ad839d6e17bc10d0b9239b74b49444" args="(const XMLCh *namespaceURI, const XMLCh *qualifiedName)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMElement* xercesc::DOMDocument::createElementNS </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname" nowrap> <em>namespaceURI</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>const XMLCh * </td>
|
|
<td class="mdname" nowrap> <em>qualifiedName</em></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Creates an element of the given qualified name and namespace URI.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>namespaceURI</em> </td><td>The namespace URI of the element to create. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>qualifiedName</em> </td><td>The qualified name of the element type to instantiate. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>A new <code>DOMElement</code> object with the following attributes: <table border="1" cellspacing="3" cellpadding="3">
|
|
<tr>
|
|
<td valign="top" rowspan="1" colspan="1"><code>Attribute</code> </td><td valign="top" rowspan="1" colspan="1"><code>Value</code> </td></tr>
|
|
<tr>
|
|
<td valign="top" rowspan="1" colspan="1"><code>DOMNode.nodeName</code> </td><td valign="top" rowspan="1" colspan="1"><code>qualifiedName</code> </td></tr>
|
|
<tr>
|
|
<td valign="top" rowspan="1" colspan="1"><code>DOMNode.namespaceURI</code> </td><td valign="top" rowspan="1" colspan="1"><code>namespaceURI</code> </td></tr>
|
|
<tr>
|
|
<td valign="top" rowspan="1" colspan="1"><code>DOMNode.prefix</code> </td><td valign="top" rowspan="1" colspan="1">prefix, extracted from <code>qualifiedName</code>, or <code>null</code> if there is no prefix </td></tr>
|
|
<tr>
|
|
<td valign="top" rowspan="1" colspan="1"><code>DOMNode.localName</code> </td><td valign="top" rowspan="1" colspan="1">local name, extracted from <code>qualifiedName</code> </td></tr>
|
|
<tr>
|
|
<td valign="top" rowspan="1" colspan="1"><code>DOMElement.tagName</code> </td><td valign="top" rowspan="1" colspan="1"><code>qualifiedName</code> </td></tr>
|
|
</table>
|
|
</dd></dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>DOMException</em> </td><td>INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character, per the XML 1.0 specification . <br>
|
|
NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is malformed per the Namespaces in XML specification, if the <code>qualifiedName</code> has a prefix and the <code>namespaceURI</code> is <code>null</code>, or if the <code>qualifiedName</code> has a prefix that is "xml" and the <code>namespaceURI</code> is different from " <a href="http://www.w3.org/XML/1998/namespace">http://www.w3.org/XML/1998/namespace</a>" . <br>
|
|
NOT_SUPPORTED_ERR: Always thrown if the current document does not support the <code>"XML"</code> feature, since namespaces were defined by XML. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="f20f740c1124ea064c6a1b4543b08078"></a><!-- doxytag: member="xercesc::DOMDocument::createEntity" ref="f20f740c1124ea064c6a1b4543b08078" args="(const XMLCh *name)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMEntity* xercesc::DOMDocument::createEntity </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>name</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Non-standard extension.
|
|
<p>
|
|
Create a new entity. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the entity to instantiate </td></tr>
|
|
</table>
|
|
</dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="8861289d08c5efc973316cbf4130d9c0"></a><!-- doxytag: member="xercesc::DOMDocument::createEntityReference" ref="8861289d08c5efc973316cbf4130d9c0" args="(const XMLCh *name)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMEntityReference* xercesc::DOMDocument::createEntityReference </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>name</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Creates an <code>DOMEntityReference</code> object.
|
|
<p>
|
|
In addition, if the referenced entity is known, the child list of the <code>DOMEntityReference</code> node is made the same as that of the corresponding <code>DOMEntity</code> node.If any descendant of the <code>DOMEntity</code> node has an unbound namespace prefix, the corresponding descendant of the created <code>DOMEntityReference</code> node is also unbound; (its <code>namespaceURI</code> is <code>null</code>). The DOM Level 2 does not support any mechanism to resolve namespace prefixes. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the entity to reference. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>The new <code>DOMEntityReference</code> object. </dd></dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>DOMException</em> </td><td>INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="510813f689dcc51325653e8a212174e9"></a><!-- doxytag: member="xercesc::DOMDocument::createNotation" ref="510813f689dcc51325653e8a212174e9" args="(const XMLCh *name)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMNotation* xercesc::DOMDocument::createNotation </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>name</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Non-standard extension.
|
|
<p>
|
|
Create a Notation. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the notation to instantiate </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>A <code>DOMNotation</code> that references the newly created DOMNotation node. </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="65f8ff9afe0dd0038138859a10ad6ece"></a><!-- doxytag: member="xercesc::DOMDocument::createProcessingInstruction" ref="65f8ff9afe0dd0038138859a10ad6ece" args="(const XMLCh *target, const XMLCh *data)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMProcessingInstruction* xercesc::DOMDocument::createProcessingInstruction </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname" nowrap> <em>target</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>const XMLCh * </td>
|
|
<td class="mdname" nowrap> <em>data</em></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Creates a <code>DOMProcessingInstruction</code> node given the specified name and data strings.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>target</em> </td><td>The target part of the processing instruction. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>The data for the node. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>The new <code>DOMProcessingInstruction</code> object. </dd></dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>DOMException</em> </td><td>INVALID_CHARACTER_ERR: Raised if the specified target contains an illegal character. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="d22c9611afa0947e1b0699c3d879058f"></a><!-- doxytag: member="xercesc::DOMDocument::createTextNode" ref="d22c9611afa0947e1b0699c3d879058f" args="(const XMLCh *data)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMText* xercesc::DOMDocument::createTextNode </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>data</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Creates a <code>DOMText</code> node given the specified string.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>The data for the node. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>The new <code>DOMText</code> object. </dd></dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="6afd1ee1ba1954733f2e091cbb7f32d4"></a><!-- doxytag: member="xercesc::DOMDocument::getActualEncoding" ref="6afd1ee1ba1954733f2e091cbb7f32d4" args="() const =0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual const XMLCh* xercesc::DOMDocument::getActualEncoding </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
An attribute specifying the actual encoding of this document.
|
|
<p>
|
|
This is <code>null</code> otherwise. <br>
|
|
This attribute represents the property [character encoding scheme] defined in.<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="698a34a6561e2ecf2883e43d10e2e9a4"></a><!-- doxytag: member="xercesc::DOMDocument::getDoctype" ref="698a34a6561e2ecf2883e43d10e2e9a4" args="() const =0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMDocumentType* xercesc::DOMDocument::getDoctype </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
The Document Type Declaration (see <code>DOMDocumentType</code>) associated with this document.
|
|
<p>
|
|
For XML documents without a document type declaration this returns <code>null</code>. The DOM Level 2 does not support editing the Document Type Declaration. <code>docType</code> cannot be altered in any way, including through the use of methods inherited from the <code><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a></code> interface, such as <code>insertNode</code> or <code>removeNode</code>. <dl compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="09709e8fef5e0eeec5a9378e5aa69af1"></a><!-- doxytag: member="xercesc::DOMDocument::getDocumentElement" ref="09709e8fef5e0eeec5a9378e5aa69af1" args="() const =0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMElement* xercesc::DOMDocument::getDocumentElement </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
This is a convenience attribute that allows direct access to the child node that is the root element of the document.
|
|
<p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="fe21d6a1919ada2ab34f3f977b25b5e7"></a><!-- doxytag: member="xercesc::DOMDocument::getDocumentURI" ref="fe21d6a1919ada2ab34f3f977b25b5e7" args="() const =0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual const XMLCh* xercesc::DOMDocument::getDocumentURI </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
The location of the document or <code>null</code> if undefined.
|
|
<p>
|
|
<br>
|
|
Beware that when the <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code> supports the feature "HTML" , the href attribute of the HTML BASE element takes precedence over this attribute.<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="07926b71a2362a1e2f7f648005103f30"></a><!-- doxytag: member="xercesc::DOMDocument::getDOMConfiguration" ref="07926b71a2362a1e2f7f648005103f30" args="() const =0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMConfiguration* xercesc::DOMDocument::getDOMConfiguration </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
The configuration used when Document.normalizeDocument is invoked.
|
|
<p>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>The <code>DOMConfiguration</code> from this <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code></dd></dl>
|
|
Note that this is a partial implementation. Not all the required features are implemented and this is only used by normalizeDocument. Currently <code>DOMAttr</code> and <code>DOMText</code> nodes are normalized. Features to remove <code>DOMComment</code> and <code>DOMCDATASection</code> work. The feature to normalize namespaces is implemented. This feature is called "namespaces" and is incorectly documented in the current WD.<p>
|
|
<b>"Experimental - subject to change"</b> <dl compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="dedb2f19695a35b83fde6a584d4b748f"></a><!-- doxytag: member="xercesc::DOMDocument::getElementById" ref="dedb2f19695a35b83fde6a584d4b748f" args="(const XMLCh *elementId) const =0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMElement* xercesc::DOMDocument::getElementById </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>elementId</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Returns the <code>DOMElement</code> whose <code>ID</code> is given by <code>elementId</code>.
|
|
<p>
|
|
If no such element exists, returns <code>null</code>. Behavior is not defined if more than one element has this <code>ID</code>. The DOM implementation must have information that says which attributes are of type ID. Attributes with the name "ID" are not of type ID unless so defined. Implementations that do not know whether attributes are of type ID or not are expected to return <code>null</code>. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>elementId</em> </td><td>The unique <code>id</code> value for an element. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>The matching element. </dd></dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="af893c3414d8c80270a31e5079bb6912"></a><!-- doxytag: member="xercesc::DOMDocument::getElementsByTagName" ref="af893c3414d8c80270a31e5079bb6912" args="(const XMLCh *tagname) const =0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMNodeList* xercesc::DOMDocument::getElementsByTagName </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>tagname</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Returns a <code>DOMNodeList</code> of all the <code>DOMElement(s)</code> with a given tag name in the order in which they are encountered in a preorder traversal of the <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code> tree.
|
|
<p>
|
|
The returned node list is "live", in that changes to the document tree made after a nodelist was initially returned will be immediately reflected in the node list. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>tagname</em> </td><td>The name of the tag to match on. The special value "*" matches all tags. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>A new <code>DOMNodeList</code> object containing all the matched <code>DOMElement(s)</code>. </dd></dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="76a0638aff510d4c6db4ffadd942735c"></a><!-- doxytag: member="xercesc::DOMDocument::getElementsByTagNameNS" ref="76a0638aff510d4c6db4ffadd942735c" args="(const XMLCh *namespaceURI, const XMLCh *localName) const =0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMNodeList* xercesc::DOMDocument::getElementsByTagNameNS </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname" nowrap> <em>namespaceURI</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>const XMLCh * </td>
|
|
<td class="mdname" nowrap> <em>localName</em></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Returns a <code>DOMNodeList</code> of all the <code>DOMElement(s)</code> with a given local name and namespace URI in the order in which they are encountered in a preorder traversal of the <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code> tree.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>namespaceURI</em> </td><td>The namespace URI of the elements to match on. The special value "*" matches all namespaces. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>localName</em> </td><td>The local name of the elements to match on. The special value "*" matches all local names. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>A new <code>DOMNodeList</code> object containing all the matched <code>DOMElement(s)</code>. </dd></dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="04d71e864e9297722327cfefa530846a"></a><!-- doxytag: member="xercesc::DOMDocument::getEncoding" ref="04d71e864e9297722327cfefa530846a" args="() const =0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual const XMLCh* xercesc::DOMDocument::getEncoding </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
An attribute specifying, as part of the XML declaration, the encoding of this document.
|
|
<p>
|
|
This is <code>null</code> when unspecified.<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="707639b27e69e69f8cd032049ce2e34e"></a><!-- doxytag: member="xercesc::DOMDocument::getImplementation" ref="707639b27e69e69f8cd032049ce2e34e" args="() const =0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual DOMImplementation* xercesc::DOMDocument::getImplementation </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
The <code>DOMImplementation</code> object that handles this document.
|
|
<p>
|
|
A DOM application may use objects from multiple implementations. <dl compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="bbed38d415330cf9a630254fd728d0f9"></a><!-- doxytag: member="xercesc::DOMDocument::getStandalone" ref="bbed38d415330cf9a630254fd728d0f9" args="() const =0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual bool xercesc::DOMDocument::getStandalone </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
An attribute specifying, as part of the XML declaration, whether this document is standalone.
|
|
<p>
|
|
<br>
|
|
This attribute represents the property [standalone] defined in .<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="cba504f87d55e1de05af8a3c3757b6e1"></a><!-- doxytag: member="xercesc::DOMDocument::getStrictErrorChecking" ref="cba504f87d55e1de05af8a3c3757b6e1" args="() const =0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual bool xercesc::DOMDocument::getStrictErrorChecking </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
An attribute specifying whether errors checking is enforced or not.
|
|
<p>
|
|
When set to <code>false</code>, the implementation is free to not test every possible error case normally defined on DOM operations, and not raise any <code>DOMException</code>. In case of error, the behavior is undefined. This attribute is <code>true</code> by defaults.<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="d00469db0210af586abd65d17ecc71a7"></a><!-- doxytag: member="xercesc::DOMDocument::getVersion" ref="d00469db0210af586abd65d17ecc71a7" args="() const =0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual const XMLCh* xercesc::DOMDocument::getVersion </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
An attribute specifying, as part of the XML declaration, the version number of this document.
|
|
<p>
|
|
This is <code>null</code> when unspecified. <br>
|
|
This attribute represents the property [version] defined in .<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="365c7b839a25e4a8704a94791a772529"></a><!-- doxytag: member="xercesc::DOMDocument::importNode" ref="365c7b839a25e4a8704a94791a772529" args="(DOMNode *importedNode, bool deep)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMDocument::importNode </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top"><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td>
|
|
<td class="mdname" nowrap> <em>importedNode</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>bool </td>
|
|
<td class="mdname" nowrap> <em>deep</em></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Imports a node from another document to this document.
|
|
<p>
|
|
The returned node has no parent; (<code>parentNode</code> is <code>null</code>). The source node is not altered or removed from the original document; this method creates a new copy of the source node. <br>
|
|
For all nodes, importing a node creates a node object owned by the importing document, with attribute values identical to the source node's <code>nodeName</code> and <code>nodeType</code>, plus the attributes related to namespaces (<code>prefix</code>, <code>localName</code>, and <code>namespaceURI</code>). As in the <code>cloneNode</code> operation on a <code><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a></code>, the source node is not altered. <br>
|
|
Additional information is copied as appropriate to the <code>nodeType</code>, attempting to mirror the behavior expected if a fragment of XML source was copied from one document to another, recognizing that the two documents may have different DTDs in the XML case. The following list describes the specifics for each type of node. <dl>
|
|
<dt>ATTRIBUTE_NODE </dt>
|
|
<dd>The <code>ownerElement</code> attribute is set to <code>null</code> and the <code>specified</code> flag is set to <code>true</code> on the generated <code>DOMAttr</code>. The descendants of the source <code>DOMAttr</code> are recursively imported and the resulting nodes reassembled to form the corresponding subtree. Note that the <code>deep</code> parameter has no effect on <code>DOMAttr</code> nodes; they always carry their children with them when imported. </dd>
|
|
<dt>DOCUMENT_FRAGMENT_NODE </dt>
|
|
<dd>If the <code>deep</code> option was set to <code>true</code>, the descendants of the source element are recursively imported and the resulting nodes reassembled to form the corresponding subtree. Otherwise, this simply generates an empty <code>DOMDocumentFragment</code>. </dd>
|
|
<dt>DOCUMENT_NODE </dt>
|
|
<dd><code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code> nodes cannot be imported. </dd>
|
|
<dt>DOCUMENT_TYPE_NODE </dt>
|
|
<dd><code>DOMDocumentType</code> nodes cannot be imported. </dd>
|
|
<dt>ELEMENT_NODE </dt>
|
|
<dd>Specified attribute nodes of the source element are imported, and the generated <code>DOMAttr</code> nodes are attached to the generated <code>DOMElement</code>. Default attributes are not copied, though if the document being imported into defines default attributes for this element name, those are assigned. If the <code>importNode</code> <code>deep</code> parameter was set to <code>true</code>, the descendants of the source element are recursively imported and the resulting nodes reassembled to form the corresponding subtree. </dd>
|
|
<dt>ENTITY_NODE </dt>
|
|
<dd><code>DOMEntity</code> nodes can be imported, however in the current release of the DOM the <code>DOMDocumentType</code> is readonly. Ability to add these imported nodes to a <code>DOMDocumentType</code> will be considered for addition to a future release of the DOM.On import, the <code>publicId</code>, <code>systemId</code>, and <code>notationName</code> attributes are copied. If a <code>deep</code> import is requested, the descendants of the the source <code>DOMEntity</code> are recursively imported and the resulting nodes reassembled to form the corresponding subtree. </dd>
|
|
<dt>ENTITY_REFERENCE_NODE </dt>
|
|
<dd>Only the <code>DOMEntityReference</code> itself is copied, even if a <code>deep</code> import is requested, since the source and destination documents might have defined the entity differently. If the document being imported into provides a definition for this entity name, its value is assigned. </dd>
|
|
<dt>NOTATION_NODE </dt>
|
|
<dd><code>DOMNotation</code> nodes can be imported, however in the current release of the DOM the <code>DOMDocumentType</code> is readonly. Ability to add these imported nodes to a <code>DOMDocumentType</code> will be considered for addition to a future release of the DOM.On import, the <code>publicId</code> and <code>systemId</code> attributes are copied. Note that the <code>deep</code> parameter has no effect on <code>DOMNotation</code> nodes since they never have any children. </dd>
|
|
<dt>PROCESSING_INSTRUCTION_NODE </dt>
|
|
<dd>The imported node copies its <code>target</code> and <code>data</code> values from those of the source node. </dd>
|
|
<dt>TEXT_NODE, CDATA_SECTION_NODE, COMMENT_NODE </dt>
|
|
<dd>These three types of nodes inheriting from <code>DOMCharacterData</code> copy their <code>data</code> and <code>length</code> attributes from those of the source node. </dd>
|
|
</dl>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>importedNode</em> </td><td>The node to import. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>deep</em> </td><td>If <code>true</code>, recursively import the subtree under the specified node; if <code>false</code>, import only the node itself, as explained above. This has no effect on <code>DOMAttr</code> , <code>DOMEntityReference</code>, and <code>DOMNotation</code> nodes. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>The imported node that belongs to this <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code>. </dd></dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>DOMException</em> </td><td>NOT_SUPPORTED_ERR: Raised if the type of node being imported is not supported. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="c4a3e3ffb33ce907f211d216b356f8fb"></a><!-- doxytag: member="xercesc::DOMDocument::normalizeDocument" ref="c4a3e3ffb33ce907f211d216b356f8fb" args="()=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual void xercesc::DOMDocument::normalizeDocument </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
This method acts as if the document was going through a save and load cycle, putting the document in a "normal" form.
|
|
<p>
|
|
The actual result depends on the features being set. See <code>DOMConfiguration</code> for details.<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<br>
|
|
Noticeably this method normalizes <code>DOMText</code> nodes, makes the document "namespace wellformed", according to the algorithm described below in pseudo code, by adding missing namespace declaration attributes and adding or changing namespace prefixes, updates the replacement tree of <code>DOMEntityReference</code> nodes, normalizes attribute values, etc. <br>
|
|
Mutation events, when supported, are generated to reflect the changes occuring on the document. Note that this is a partial implementation. Not all the required features are implemented. Currently <code>DOMAttr</code> and <code>DOMText</code> nodes are normalized. Features to remove <code>DOMComment</code> and <code>DOMCDATASection</code> work. The feature to normalize namespaces is implemented. This feature is called "namespaces" and is incorectly documented in the current WD. <dl compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a0a8882293363c811c0ff125b2c1c45d"></a><!-- doxytag: member="xercesc::DOMDocument::renameNode" ref="a0a8882293363c811c0ff125b2c1c45d" args="(DOMNode *n, const XMLCh *namespaceURI, const XMLCh *name)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMDocument::renameNode </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top"><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td>
|
|
<td class="mdname" nowrap> <em>n</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>const XMLCh * </td>
|
|
<td class="mdname" nowrap> <em>namespaceURI</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>const XMLCh * </td>
|
|
<td class="mdname" nowrap> <em>name</em></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Rename an existing node.
|
|
<p>
|
|
When possible this simply changes the name of the given node, otherwise this creates a new node with the specified name and replaces the existing node with the new node as described below. This only applies to nodes of type <code>ELEMENT_NODE</code> and <code>ATTRIBUTE_NODE</code>. <br>
|
|
When a new node is created, the following operations are performed: the new node is created, any registered event listener is registered on the new node, any user data attached to the old node is removed from that node, the old node is removed from its parent if it has one, the children are moved to the new node, if the renamed node is an <code>DOMElement</code> its attributes are moved to the new node, the new node is inserted at the position the old node used to have in its parent's child nodes list if it has one, the user data that was attached to the old node is attach to the new node, the user data event <code>NODE_RENAMED</code> is fired. <br>
|
|
When the node being renamed is an <code>DOMAttr</code> that is attached to an <code>DOMElement</code>, the node is first removed from the <code>DOMElement</code> attributes map. Then, once renamed, either by modifying the existing node or creating a new one as described above, it is put back.<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>n</em> </td><td>The node to rename. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>namespaceURI</em> </td><td>The new namespaceURI. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The new qualified name. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>The renamed node. This is either the specified node or the new node that was created to replace the specified node. </dd></dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>DOMException</em> </td><td>NOT_SUPPORTED_ERR: Raised when the type of the specified node is neither <code>ELEMENT_NODE</code> nor <code>ATTRIBUTE_NODE</code>. <br>
|
|
WRONG_DOCUMENT_ERR: Raised when the specified node was created from a different document than this document. <br>
|
|
NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is malformed per the Namespaces in XML specification, if the <code>qualifiedName</code> has a prefix and the <code>namespaceURI</code> is <code>null</code>, or if the <code>qualifiedName</code> has a prefix that is "xml" and the <code>namespaceURI</code> is different from " <a href="http://www.w3.org/XML/1998/namespace">http://www.w3.org/XML/1998/namespace</a>" . Also raised, when the node being renamed is an attribute, if the <code>qualifiedName</code>, or its prefix, is "xmlns" and the <code>namespaceURI</code> is different from "http://www.w3.org/2000/xmlns/". </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="3d2af58cafa8e1777d67dadff76ab999"></a><!-- doxytag: member="xercesc::DOMDocument::setActualEncoding" ref="3d2af58cafa8e1777d67dadff76ab999" args="(const XMLCh *actualEncoding)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual void xercesc::DOMDocument::setActualEncoding </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>actualEncoding</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
An attribute specifying the actual encoding of this document.
|
|
<p>
|
|
This is <code>null</code> otherwise. <br>
|
|
This attribute represents the property [character encoding scheme] defined in .<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="660099866e9add0a1e1dd1f97c05a2e5"></a><!-- doxytag: member="xercesc::DOMDocument::setDocumentURI" ref="660099866e9add0a1e1dd1f97c05a2e5" args="(const XMLCh *documentURI)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual void xercesc::DOMDocument::setDocumentURI </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>documentURI</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
The location of the document or <code>null</code> if undefined.
|
|
<p>
|
|
<br>
|
|
Beware that when the <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code> supports the feature "HTML" , the href attribute of the HTML BASE element takes precedence over this attribute.<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="ec887c9769d162b2b03c7883904f93b6"></a><!-- doxytag: member="xercesc::DOMDocument::setEncoding" ref="ec887c9769d162b2b03c7883904f93b6" args="(const XMLCh *encoding)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual void xercesc::DOMDocument::setEncoding </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>encoding</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
An attribute specifying, as part of the XML declaration, the encoding of this document.
|
|
<p>
|
|
This is <code>null</code> when unspecified.<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="6e4ed89a40f3878fa99957a2ca9441c8"></a><!-- doxytag: member="xercesc::DOMDocument::setStandalone" ref="6e4ed89a40f3878fa99957a2ca9441c8" args="(bool standalone)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual void xercesc::DOMDocument::setStandalone </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">bool </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>standalone</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
An attribute specifying, as part of the XML declaration, whether this document is standalone.
|
|
<p>
|
|
<br>
|
|
This attribute represents the property [standalone] defined in .<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="cd3e1baf80b464f2450d0fda8d365e9e"></a><!-- doxytag: member="xercesc::DOMDocument::setStrictErrorChecking" ref="cd3e1baf80b464f2450d0fda8d365e9e" args="(bool strictErrorChecking)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual void xercesc::DOMDocument::setStrictErrorChecking </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">bool </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>strictErrorChecking</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
An attribute specifying whether errors checking is enforced or not.
|
|
<p>
|
|
When set to <code>false</code>, the implementation is free to not test every possible error case normally defined on DOM operations, and not raise any <code>DOMException</code>. In case of error, the behavior is undefined. This attribute is <code>true</code> by defaults.<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="57f68712afb2ecc68c37fe5da970a964"></a><!-- doxytag: member="xercesc::DOMDocument::setVersion" ref="57f68712afb2ecc68c37fe5da970a964" args="(const XMLCh *version)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual void xercesc::DOMDocument::setVersion </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>version</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
An attribute specifying, as part of the XML declaration, the version number of this document.
|
|
<p>
|
|
This is <code>null</code> when unspecified. <br>
|
|
This attribute represents the property [version] defined in .<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="DOMDocument_8hpp-source.html">DOMDocument.hpp</a></ul>
|
|
<hr size="1"><address style="align: right;"><small>Generated on Tue Dec 12 00:18:57 2006 for XQilla Simple API by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
|
|
</body>
|
|
</html>
|