<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Query whether setting a feature to a specific value is supported. <ahref="#210ea59f51169be505165677139b8a96"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Look up the value of a feature. <ahref="#dec8f5a11c793ec3a6a96ee80be132a2"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">The character encoding in which the output will be written. <ahref="#9826abdbb33f85f59e7bba0777bb781c"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">The end-of-line sequence of characters to be used in the XML being written out. <ahref="#0522dcac9fee7fbb8b3330456069cf0c"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">The error handler that will receive error notifications during serialization. <ahref="#4425eaac49c557c7d2ac75b092602bc7"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">When the application provides a filter, the serializer will call out to the filter before serializing each Node. <ahref="#ba1e3c9a7be87cd5d816d9d8e9e3f7ad"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Return the character encoding in which the output will be written. <ahref="#32dbf642d60001b0a17c537c23dcf8d8"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Return the end-of-line sequence of characters to be used in the XML being written out. <ahref="#f41aed928b8c023f148d8175faa10e19"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Return the error handler that will receive error notifications during serialization. <ahref="#0c7a1d64d226063fbd290088869434d3"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Write out the specified node as described above in the description of <code><aclass="el"href="classxercesc_1_1DOMWriter.html">DOMWriter</a></code>. <ahref="#715500b3f075de6fa53a5bb7e7c3bfcf"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Serialize the specified node as described above in the description of <code><aclass="el"href="classxercesc_1_1DOMWriter.html">DOMWriter</a></code>. <ahref="#1ed776eee2becf0052981ff5968d1349"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Called to indicate that this Writer is no longer in use and that the implementation may relinquish any resources associated with it. <ahref="#641ef60cbd02a6182176343b457ddfc7"></a><br></td></tr>
</table>
<hr><h2>Constructor & Destructor Documentation</h2>
Query whether setting a feature to a specific value is supported.
<p>
<br>
The feature name has the same form as a DOM hasFeature string.<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>featName</em> </td><td>The feature name, which is a DOM has-feature style string. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>state</em> </td><td>The requested state of the feature (<code>true</code> or <code>false</code>). </td></tr>
<dlclass="return"compact><dt><b>Returns:</b></dt><dd><code>true</code> if the feature could be successfully set to the specified value, or <code>false</code> if the feature is not recognized or the requested value is not supported. The value of the feature itself is not changed. </dd></dl>
The feature name has the same form as a DOM hasFeature string. <br>
It is possible for a <code><aclass="el"href="classxercesc_1_1DOMWriter.html">DOMWriter</a></code> to recognize a feature name but to be unable to set its value.<p>
<tr><tdvalign="top"></td><tdvalign="top"><em>state</em> </td><td>The requested state of the feature (<code>true</code> or <code>false</code>). </td></tr>
</table>
</dl>
<dlcompact><dt><b>Exceptions:</b></dt><dd>
<tableborder="0"cellspacing="2"cellpadding="0">
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>Raise a NOT_SUPPORTED_ERR exception when the <code><aclass="el"href="classxercesc_1_1DOMWriter.html">DOMWriter</a></code> recognizes the feature name but cannot set the requested value. <br>
Raise a NOT_FOUND_ERR When the <code><aclass="el"href="classxercesc_1_1DOMWriter.html">DOMWriter</a></code> does not recognize the feature name. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>Raise a NOT_FOUND_ERR When the <code><aclass="el"href="classxercesc_1_1DOMWriter.html">DOMWriter</a></code> does not recognize the feature name.</td></tr>
The character encoding in which the output will be written.
<p>
<br>
The encoding to use when writing is determined as follows: If the encoding attribute has been set, that value will be used.If the encoding attribute is <code>null</code> or empty, but the item to be written includes an encoding declaration, that value will be used.If neither of the above provides an encoding name, a default encoding of "UTF-8" will be used. <br>
The default value is <code>null</code>.<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>encoding</em> </td><td>The character encoding in which the output will be written. </td></tr>
<dd>Use a default end-of-line sequence. DOM implementations should choose the default to match the usual convention for text files in the environment being used. Implementations must choose a default sequence that matches one of those allowed by 2.11 "End-of-Line Handling". </dd>
<dt>CR </dt>
<dd>The carriage-return character (xD). </dd>
<dt>CR-LF </dt>
<dd>The carriage-return and line-feed characters (xD xA). </dd>
<dt>LF </dt>
<dd>The line-feed character (xA). </dd>
</dl>
<br>
The default value for this attribute is <code>null</code>.<p>
The node where the error occured is passed to this error handler, any modification to nodes from within an error callback should be avoided since this will result in undefined, implementation dependent behavior.<p>
When the application provides a filter, the serializer will call out to the filter before serializing each Node.
<p>
Attribute nodes are never passed to the filter. The filter implementation can choose to remove the node from the stream or to terminate the serialization early.<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>filter</em> </td><td>The writer filter to be used. </td></tr>
Write out the specified node as described above in the description of <code><aclass="el"href="classxercesc_1_1DOMWriter.html">DOMWriter</a></code>.
<p>
Writing a Document or Entity node produces a serialized form that is well formed XML. Writing other node types produces a fragment of text in a form that is not fully defined by this document, but that should be useful to a human for debugging or diagnostic purposes.<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>destination</em> </td><td>The destination for the data to be written. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>nodeToWrite</em> </td><td>The <code>Document</code> or <code>Entity</code> node to be written. For other node types, something sensible should be written, but the exact serialized form is not specified. </td></tr>
<dlclass="return"compact><dt><b>Returns:</b></dt><dd>Returns <code>true</code> if <code>node</code> was successfully serialized and <code>false</code> in case a failure occured and the failure wasn't canceled by the error handler. </dd></dl>
Serialize the specified node as described above in the description of <code><aclass="el"href="classxercesc_1_1DOMWriter.html">DOMWriter</a></code>.
<p>
The result of serializing the node is returned as a string. Writing a Document or Entity node produces a serialized form that is well formed XML. Writing other node types produces a fragment of text in a form that is not fully defined by this document, but that should be useful to a human for debugging or diagnostic purposes.<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>nodeToWrite</em> </td><td>The node to be written. </td></tr>
<dlclass="return"compact><dt><b>Returns:</b></dt><dd>Returns the serialized data, or <code>null</code> in case a failure occured and the failure wasn't canceled by the error handler. The returned string is always in UTF-16. The encoding information available in <aclass="el"href="classxercesc_1_1DOMWriter.html">DOMWriter</a> is ignored in <aclass="el"href="classxercesc_1_1DOMWriter.html#1ed776eee2becf0052981ff5968d1349">writeToString()</a>. </dd></dl>