GXMLElement Class Reference

[libgfc Index] [libgfc Hierarchy] [Headers]


structure for the XML element node More...

#include <utils/src/gxmlwf.h>

Public Members


Detailed Description

structure for the XML element node. All the attributes are public so as to make the access simple and direct.


void addChild(GXMLElement* el) [public]

add an element as its child. Appened to the end of *children. The children of an element are the ones that live within the scope of it. The list of children is headed by the field "children".

void addAttr(GXMLAttr* att) [public]

add an attribute (name,value) pair to the list of attributes. All attributes are chained using the GXMLAttr->next filed, the head being "attrs".

bool isLeaf() const [public]

determin whether this is a leaf element. An elment is a leaf if it has no child elements.

void setNext(GXMLElement* el) [public]

link the next element

void setParent(GXMLElement* el) [public]

set element "el" as the parent of this element. Each element (except root) can have only one parent; The root element has no parent.

bool isAllSpace() [public]

determine whether the content is all white space (empty content).

const char* getAttributeValue(const char* attr) [public]

get the value for the specified attribute


Documentation generated by lqian@lqian-sun on Wed Jul 14 09:36:10 EDT 1999
Kdoc