GXMLProcessor Class Reference

[libgfc Index] [libgfc Hierarchy] [Headers]


The GFC XML processor More...

#include <utils/src/gxmlwf.h>

Public Members

Protected Members


Detailed Description

The GFC XML processor. This contains a wrapper of James Clark's expat parser


int parseStream() [public]

parse an XML file. The logical structure of the document is represented by a tree of elemnets. The root of the tree can be accessed using getRoot() method. Returns 1 if no error encountered; returns 0 if it is not a well-formed XML file.

GXMLElement* getRoot() [public]

return the root element of the currently built xml tree. All the other elements can be accessed through traversal starting at root.

GXMLElement* search(const char* key) [public]

search for an element with given key in the document tree. return the first element found.

Parameters:
key is the key to be matched. Default is the name of the element.

void printAll() const [public]

print all the elements.

int writeStream(const char* file) [public]

write the parsed tree (possibly with updated elements) back to a file as a well-formed XML.


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