MXMLElement Class Reference
[Micro XML Document Object Model]
#include <mxmldom.h>
Inheritance diagram for MXMLElement:

Detailed Description
Node representing an XML element.XML elements contain child nodes. They are named, and have child attributes.
Public Member Functions | |
| Attributes & | GetAttributes () |
| Get the elements attributes. | |
| void | SetName (const char *a_name) |
| Set the element name (UTF8). | |
| const char * | GetName () const |
| Get the element name (UTF8). | |
| bool | IsName (const char *a_name) const |
| is the element named a_name (UTF8) | |
| virtual const char * | GetText () const |
| Get all child text derived nodes appended. | |
| MXMLElement * | FindChild (const char *a_name) |
| Find the first named child element. | |
| MXMLNode * | GetFirstChild () |
| Get the first child node. | |
| MXMLNode * | GetLastChild () |
| Get the last child node. | |
| MXMLElement * | GetFirstChildElement () |
| Get the first child element. | |
| MXMLElement * | GetNextSiblingElement () |
| Get the next sibling element. | |
| bool | RemoveChild (MXMLNode *a_node) |
| Remove a child node. | |
| bool | InsertAfter (MXMLNode *a_cursor, MXMLNode *a_node) |
| Insert a node after the cursor. | |
| bool | InsertBefore (MXMLNode *a_cursor, MXMLNode *a_node) |
| Insert a node before the cursor. | |
| void | InsertLast (MXMLNode *a_node) |
| Insert a node after the last child node. | |
| MXMLDeclaration * | AppendDeclaration (const char *a_declaration=NULL, size_t a_size=0) |
| Create and append an MXMLDeclaration node. | |
| MXMLComment * | AppendComment (const char *a_comment=NULL, size_t a_size=0) |
| Create and append an MXMLComment node. | |
| MXMLText * | AppendText (const char *a_text=NULL, size_t a_size=0) |
| Create and append an MXMLText node. | |
| MXMLCDATA * | AppendCDATA (const char *a_cdata=NULL, size_t a_size=0) |
| Create and append an MXMLCDATA node. | |
| MXMLElement * | AppendElement (const char *a_name=NULL) |
| Create and append an MXMLElement node. | |
| virtual void | Format (int a_tabs=0) |
| Reformat the element with white space. | |
Member Function Documentation
|
|
Reformat the element with white space. Format will trim all current document whitespace and re format the document with the said number of tabs (tabs == 2 spaces) |
|
|
Get all child text derived nodes appended. This method uses the owning documents buffer to append child text nodes. Reimplemented from MXMLNode.
|
|
|
Remove a child node. Once a node is removed, it must be either re-inserted or manually disposed |
The documentation for this class was generated from the following files:
- mxmldom.h
- mxmldom.cpp