<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>DOMString ixmlDocumenttoString</TITLE> <META NAME="GENERATOR" CONTENT="DOC++ 3.4.10"> </HEAD> <BODY BGCOLOR="#ffffff"> <H2>DOMString <A HREF="#DOC.DOCU">ixmlDocumenttoString</A></H2><H2>(IXML_Document* doc)</H2><BLOCKQUOTE>Renders a <B>Node</B> and all sub-elements into an XML document representation.</BLOCKQUOTE> <A NAME="DOC.DOCU"></A> <HR> <H2>Documentation</H2> <BLOCKQUOTE>Renders a <B>Node</B> and all sub-elements into an XML document representation. The caller is required to free the <B>DOMString</B> returned from this function using <B>ixmlFreeDOMString</B> when it is no longer required. <P>Note that this function can be used for any <B>Node</B>-derived interface. The difference between <B>ixmlDocumenttoString</B> and <B>ixmlNodetoString</B> is <B>ixmlDocumenttoString</B> includes the XML prolog while <B>ixmlNodetoString</B> only produces XML elements. An XML document is not well formed unless it includes the prolog and at least one element. <P></BLOCKQUOTE> <DL><DT><DT><B>Returns:</B><DD> [DOMString] A <B>DOMString</B> with the XML text representation of the DOM tree or <TT>NULL</TT> on an error.<BR><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I></P><HR> <BR> This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>. </BODY> </HTML>