GXmlTree Class Reference

The reader/writer for a tree of GXmlTag objects. More...

#include <GXmlTree.h>

List of all members.

Public Member Functions

 GXmlTree (int Flags=0)
 Constructor.
bool Read (GXmlTag *Root, GStreamI *File, GXmlFactory *Factory=0)
 Read an XML file into a DOM tree of GXmlTag objects from a stream.
bool Write (GXmlTag *Root, GStreamI *File)
 Write an XML file from a DOM tree of GXmlTag objects into a stream.
char * GetErrorMsg ()
 Gets the last error message.
GHashTable * NoChildTags ()
 A hash of tags that can't have children.
char * GetStyleFile (char **StyleType=0)
 Gets the associated style file.
void SetStyleFile (char *stylefile, char *styletype="text/css")
 Sets the associated css file.
GHashTbl< char *, char * > * GetEntityTable ()
 Add entities.
char * DecodeEntities (char *s, int len=-1)
 Decode a string with entities.
char * EncodeEntities (char *s, int len=-1)
 Encode a string to use entities.
bool EncodeEntities (GStreamI *out, char *s, int len)
 Encode a string to use entities.

Friends

class GXmlTag


Detailed Description

The reader/writer for a tree of GXmlTag objects.

Constructor & Destructor Documentation

GXmlTree::GXmlTree ( int  Flags = 0  ) 


Member Function Documentation

bool GXmlTree::Read ( GXmlTag Root,
GStreamI *  File,
GXmlFactory Factory = 0 
)

Read an XML file into a DOM tree of GXmlTag objects from a stream.

Parameters:
Root  The root tag to create children from.
File  The stream to read from.
Factory  [Optional] The factory to create GXmlTag type objects. If not specified vanilla GXmlTag objects will be created.

References GXmlTag::Allocator, GXmlTag::Attr, GXmlTag::Children, List< Type >::First(), GXT_NO_DOM, GXmlTag::InsertTag(), GArray< Type >::Length(), GXmlAttr::Name, List< Type >::Next(), GFile::Open(), GXmlTag::Parent, GXmlTag::Serialize(), GXmlTag::Tag, GXmlTag::Write, and Write().

Referenced by GApp::GetConfig().

bool GXmlTree::Write ( GXmlTag Root,
GStreamI *  File 
)

Write an XML file from a DOM tree of GXmlTag objects into a stream.

Parameters:
Root  The DOM tree.
File  The output stream.

Referenced by Read().


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

Generated on Wed Dec 1 15:41:05 2010 for Lgi by  doxygen 1.5.7.1