| - -( dyne // software :: culture :: events :: planet :: discussion :: museum \\ freaknet )- - |
#include <xmlprofile.h>
Collaboration diagram for XmlTag:

XmlTag objects can be directly created and attached to an XmlProfile. They will also be instantiated as necessary during a parsing process (loading a file or parsing a string buffer)
Definition at line 75 of file xmlprofile.h.
Public Member Functions | |
| XmlTag (const char *name, XmlTag *parentEntry) | |
| the XmlTag class constructor | |
| XmlTag (const char *name, char *val, XmlTag *parentEntry) | |
| the XmlTag class alternative constructor. This constructor let you specify the tag value directly, without having to call the value(char *val) method later on to set tha element value | |
| ~XmlTag () | |
| the XmlTag class destructor | |
| char * | path () |
| get the path of an element | |
| char * | name () |
| get the name of an element | |
| XmlTag * | parent () |
| get the parent element | |
| char * | value () |
| get the element value | |
| XmlErr | value (char *val) |
| set the element value | |
| XmlErr | addChild (XmlTag *child) |
| add a new child to the current XmlTag element | |
| int | numChildren () |
| get the number of children | |
| XmlTag * | getChild (int index) |
| get a child object | |
| XmlTag * | getChild (char *name) |
| get a child object | |
| XmlTagAttribute * | getAttribute (int index) |
| get an attribute by index | |
| XmlTagAttribute * | getAttribute (char *name) |
| get an attribute by name | |
| XmlErr | addAttribute (char *attrName, char *attrValue) |
| add a new attribute | |
| int | numAttributes () |
| get the number of element's attributes | |
Public Attributes | |
| Linklist * | children |
| linked list containing element's children | |
| Linklist * | attributes |
| linked list containing element's attributes | |
|
|
|
|
| Copyleft 2000 - 2008 dyne.org foundation and respective authors. Verbatim copying and distribution is permitted in any medium, provided this notice is preserved. Send inquiries & questions to dyne.org's hackers. |
|