<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_DomDocument - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>Class CL_DomDocument</h1> <p> DOM Document class. <a href="#description">More...</a></p> <p>Derived from: <a href="CL_DomNode.html">CL_DomNode</a> <br> Derived by: <i>none</i> <br>Group: Core (XML)</p> <p> #include <ClanLib/core.h> <p> <table border=0 width=100%> </table> <p><b>Construction:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_DomDocument__CL_DomDocument.html">CL_DomDocument</a></p></td><td valign=top><p> Constructs a DOM Document.</p></td></tr></table> <p><b>Attributes:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_DomDocument__get_doctype.html">get_doctype</a></p></td><td valign=top><p> Returns the Document Type Declaration (see CL_DomDocumentType)associated with this document.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomDocument__get_implementation.html">get_implementation</a></p></td><td valign=top><p> Returns the CL_DomImplementation object that handles this document.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomDocument__get_document_element.html">get_document_element</a></p></td><td valign=top><p> Returns the root document element node.</p></td></tr></table> <p><b>Operations:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_DomDocument__create_element.html">create_element</a></p></td><td valign=top><p> Creates an element of the type specified.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomDocument__create_document_fragment.html">create_document_fragment</a></p></td><td valign=top><p> Creates an empty DocumentFragment object.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomDocument__create_text_node.html">create_text_node</a></p></td><td valign=top><p> Creates a Text node given the specified string.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomDocument__create_comment.html">create_comment</a></p></td><td valign=top><p> Creates a Comment node given the specified string.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomDocument__create_cdata_section.html">create_cdata_section</a></p></td><td valign=top><p> Creates a CDATASection node whose value is the specified string.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomDocument__create_processing_instruction.html">create_processing_instruction</a></p></td><td valign=top><p> Creates a ProcessingInstruction node given the specified name and data strings.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomDocument__create_attribute.html">create_attribute</a></p></td><td valign=top><p> Creates an Attr of the given name.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomDocument__create_entity_reference.html">create_entity_reference</a></p></td><td valign=top><p> Creates an EntityReference object.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomDocument__get_elements_by_tag_name.html">get_elements_by_tag_name</a></p></td><td valign=top><p> Returns a NodeList of all the Elements with a given tag name in the order in which they would be encountered in a preorder traversal of the Document tree.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomDocument__load.html">load</a></p></td><td valign=top><p> Loads the DOM document as XML from an input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomDocument__save.html">save</a></p></td><td valign=top><p> Saves the DOM document as XML to an input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DomDocument__clear_all.html">clear_all</a></p></td><td valign=top><p> Removes all nodes from the DOM document.</p></td></tr></table> <a name="#description"><p><b>Detailed description:</b></p> !group=Core/XML! !header=core.h! <p>The Document interface represents the entire HTML or XML document. Conceptually, it is the root of the document tree, and provides the primary access to the document's data.</p> <p>Since elements, text nodes, comments, processing instructions, etc. cannot exist outside the context of a Document, the Document interface also contains the factory methods needed to create these objects. The Node objects created have a ownerDocument attribute which associates them with the Document within whose context they were created.</p> <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->