<h1>xercesc::DOMImplementation Class Reference</h1><!-- doxytag: class="xercesc::DOMImplementation" --><!-- doxytag: inherits="xercesc::DOMImplementationLS" -->The <code><aclass="el"href="classxercesc_1_1DOMImplementation.html">DOMImplementation</a></code> interface provides a number of methods for performing operations that are independent of any particular instance of the document object model.
Inheritance diagram for xercesc::DOMImplementation:<p><center><imgsrc="classxercesc_1_1DOMImplementation__inherit__graph.png"border="0"usemap="#xercesc_1_1DOMImplementation__inherit__map"alt="Inheritance graph"></center>
<center><fontsize="2">[<ahref="graph_legend.html">legend</a>]</font></center><ahref="classxercesc_1_1DOMImplementation-members.html">List of all members.</a><tableborder="0"cellpadding="0"cellspacing="0">
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Test if the DOM implementation implements a specific feature. <ahref="#f40c750c0d4de46f33ef68a7770631c4"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates a <aclass="el"href="classxercesc_1_1DOMDocument.html">DOMDocument</a> object of the specified type with its document element. <ahref="#37e8c9e3df6dd6a2bcdf80bb196e70d3"></a><br></td></tr>
<tr><tdcolspan="2"><divclass="groupHeader">Functions introduced in DOM Level 3</div></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">This method makes available a <code><aclass="el"href="classxercesc_1_1DOMImplementation.html">DOMImplementation</a></code>'s specialized interface (see ). <ahref="#9b466d651816289a84b75c845671e136"></a><br></td></tr>
The <code><aclass="el"href="classxercesc_1_1DOMImplementation.html">DOMImplementation</a></code> interface provides a number of methods for performing operations that are independent of any particular instance of the document object model.
<p>
<hr><h2>Constructor & Destructor Documentation</h2>
<tr><tdvalign="top"></td><tdvalign="top"><em>feature</em> </td><td>The name of the feature to test (case-insensitive). The values used by DOM features are defined throughout the DOM Level 2 specifications and listed in the section. The name must be an XML name. To avoid possible conflicts, as a convention, names referring to features defined outside the DOM specification should be made unique. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>version</em> </td><td>This is the version number of the feature to test. In Level 2, the string can be either "2.0" or "1.0". If the version is not specified, supporting any version of the feature causes the method to return <code>true</code>. </td></tr>
<dlclass="return"compact><dt><b>Returns:</b></dt><dd><code>true</code> if the feature is implemented in the specified version, <code>false</code> otherwise. </dd></dl>
Creates an empty <code><aclass="el"href="classxercesc_1_1DOMDocumentType.html">DOMDocumentType</a></code> node.
<p>
Entity declarations and notations are not made available. Entity reference expansions and default attribute additions do not occur. It is expected that a future version of the DOM will provide a way for populating a <code><aclass="el"href="classxercesc_1_1DOMDocumentType.html">DOMDocumentType</a></code>. <dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>qualifiedName</em> </td><td>The qualified name of the document type to be created. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>publicId</em> </td><td>The external subset public identifier. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>systemId</em> </td><td>The external subset system identifier. </td></tr>
<dlclass="return"compact><dt><b>Returns:</b></dt><dd>A new <code><aclass="el"href="classxercesc_1_1DOMDocumentType.html">DOMDocumentType</a></code> node with <code>ownerDocument</code> set to <code>null</code>. </dd></dl>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character. <br>
NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is malformed. <br>
NOT_SUPPORTED_ERR: May be raised by DOM implementations which do not support the <code>"XML"</code> feature, if they choose not to support this method. Other features introduced in the future, by the DOM WG or in extensions defined by other groups, may also demand support for this method; please consult the definition of the feature to see if it requires this method. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>namespaceURI</em> </td><td>The namespace URI of the document element to create. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>qualifiedName</em> </td><td>The qualified name of the document element to be created. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>doctype</em> </td><td>The type of document to be created or <code>null</code>. When <code>doctype</code> is not <code>null</code>, its <code>ownerDocument</code> attribute is set to the document being created. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>manager</em> </td><td>Pointer to the memory manager to be used to allocate objects. </td></tr>
</table>
</dl>
<dlclass="return"compact><dt><b>Returns:</b></dt><dd>A new <code><aclass="el"href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code> object. </dd></dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character. <br>
NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is malformed, 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 " <ahref="http://www.w3.org/XML/1998/namespace">http://www.w3.org/XML/1998/namespace</a>" , or if the DOM implementation does not support the <code>"XML"</code> feature but a non-null namespace URI was provided, since namespaces were defined by XML. <br>
WRONG_DOCUMENT_ERR: Raised if <code>doctype</code> has already been used with a different document or was created from a different implementation. <br>
NOT_SUPPORTED_ERR: May be raised by DOM implementations which do not support the "XML" feature, if they choose not to support this method. Other features introduced in the future, by the DOM WG or in extensions defined by other groups, may also demand support for this method; please consult the definition of the feature to see if it requires this method. </td></tr>
This method makes available a <code><aclass="el"href="classxercesc_1_1DOMImplementation.html">DOMImplementation</a></code>'s specialized interface (see ).
<p>
<b>"Experimental - subject to change"</b><p>
<dlcompact><dt><b>Parameters:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em>feature</em> </td><td>The name of the feature requested (case-insensitive). </td></tr>
<dlclass="return"compact><dt><b>Returns:</b></dt><dd>Returns an alternate <code><aclass="el"href="classxercesc_1_1DOMImplementation.html">DOMImplementation</a></code> which implements the specialized APIs of the specified feature, if any, or <code>null</code> if there is no alternate <code><aclass="el"href="classxercesc_1_1DOMImplementation.html">DOMImplementation</a></code> object which implements interfaces associated with that feature. Any alternate <code><aclass="el"href="classxercesc_1_1DOMImplementation.html">DOMImplementation</a></code> returned by this method must delegate to the primary core <code><aclass="el"href="classxercesc_1_1DOMImplementation.html">DOMImplementation</a></code> and not return results inconsistent with the primary <code><aclass="el"href="classxercesc_1_1DOMImplementation.html">DOMImplementation</a></code></dd></dl>
Factory method for getting a <aclass="el"href="classxercesc_1_1DOMImplementation.html">DOMImplementation</a> object. The DOM implementation retains ownership of the returned object. Application code should NOT delete it.
Load the default error text message for <aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a>. <dlcompact><dt><b>Parameters:</b></dt><dd>
<tr><tdvalign="top"></td><tdvalign="top"><em>toFill</em> </td><td>The buffer that will hold the output on return. The size of this buffer should at least be 'maxChars + 1'. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>maxChars</em> </td><td>The maximum number of output characters that can be accepted. If the result will not fit, it is an error. </td></tr>
Load the default error text message for <aclass="el"href="classxercesc_1_1DOMRangeException.html">DOMRangeException</a>. <dlcompact><dt><b>Parameters:</b></dt><dd>
<tr><tdvalign="top"></td><tdvalign="top"><em>toFill</em> </td><td>The buffer that will hold the output on return. The size of this buffer should at least be 'maxChars + 1'. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>maxChars</em> </td><td>The maximum number of output characters that can be accepted. If the result will not fit, it is an error. </td></tr>