- -( dyne // software :: culture :: events :: planet :: discussion :: museum \\ freaknet )- -
 
Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members

XmlTag Class Reference

#include <xmlprofile.h>

Collaboration diagram for XmlTag:

Collaboration graph
[legend]
List of all members.

Detailed Description

the XmlTag handler class. This kind of object represents a single XML element

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

XmlTagparent ()
 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

XmlTaggetChild (int index)
 get a child object

XmlTaggetChild (char *name)
 get a child object

XmlTagAttributegetAttribute (int index)
 get an attribute by index

XmlTagAttributegetAttribute (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

Linklistchildren
 linked list containing element's children

Linklistattributes
 linked list containing element's attributes


The documentation for this class was generated from the following files: