- xmlfoundationsrc.zip
- XMLFoundation
- Bin
- Errors
- english
- Examples
- c++
- ExATLCOM
- ExCORBA
- ExIndexObjects
- ExObjsFromXML
- Docs
- DynamicObjectsfromXML.html
- ExATLCOM.html
- ExCORBA.html
- Images
- ArrowLeft.gif
- ArrowRight.gif
- ExATLC1.gif
- ExATLC2.gif
- ExATLC3.gif
- gears.gif
- Index.6.gif
- objects.jpg
- ObjFromXML1.jpg
- ObjFromXML10.jpg
- ObjFromXML11.jpg
- ObjFromXML12.jpg
- ObjFromXML13.jpg
- ObjFromXML14.jpg
- ObjFromXML2.jpg
- ObjFromXML3.jpg
- ObjFromXML4.jpg
- ObjFromXML5.jpg
- ObjFromXML6.jpg
- ObjFromXML7.jpg
- ObjFromXML8.jpg
- ObjFromXML9.jpg
- SourceXML.jpg
- vssver.scc
- Java
- ExXMLObjects
- Library
- Build
- makefile.linux
- makefile.sun
- XMLFoundationLib.dsp
- XMLFoundationLib.plg
- inc
- src
- ReadMe.txt
- Tools
- JavaFoundation
- VCppUseThis.dsw
- VCppUseThis.opt
|
// --------------------------------------------------------------------------
// www.UnitedBusinessTechnologies.com
// Copyright (c) 1998 - 2002 All Rights Reserved.
//
// Source in this file is released to the public under the following license:
// --------------------------------------------------------------------------
// This toolkit may be used free of charge for any purpose including corporate
// and academic use. For profit, and Non-Profit uses are permitted.
//
// This source code and any work derived from this source code must retain
// this copyright at the top of each source file.
//
// UBT welcomes any suggestions, improvements or new platform ports.
// email to: XMLFoundation@UnitedBusinessTechnologies.com
// --------------------------------------------------------------------------
#ifndef __XML_ELEMENT_TREE_H_
#define __XML_ELEMENT_TREE_H_
#include "GList.h"
#include "xmlLex.h"
class CXMLElement;
class CXMLTree : public xml::lex
{
GList m_paramtererEntities;
GList m_generalEntities;
protected:
CXMLElement *addChild(CXMLElement *parent,
xml::token &tok,
const char *TokTag,
int TokTagLength);
CXMLElement *addAttribute(CXMLElement *parent,
xml::token &tok,
const char *TokTag,
int TokTagLength);
CXMLElement *m_root;
public:
void PruneTree(CXMLElement *root = 0);
virtual void parseXML(char *xml, bool bEatWhite = 0);
inline CXMLElement *getRoot(void);
inline void detach(void);
inline void attach(CXMLElement *);
/*
constructs an empty XML tree
and initializes the XML parser
*/
CXMLTree();
/*
frees all elements, attributes of elements
and child elements in the tree.
*/
virtual ~CXMLTree();
};
inline void CXMLTree::attach(CXMLElement *pNode)
{
if (m_root != 0)
throw 1;
m_root = pNode;
}
inline CXMLElement *CXMLTree::getRoot(void)
{
return m_root;
}
inline void CXMLTree::detach(void)
{
m_root = 0;
}
#endif // __XML_ELEMENT_TREE_H_
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here