00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef LIBXMLTREE_H
00017 #define LIBXMLTREE_H
00018
00019 #include <Element.h>
00020
00022
00024 namespace libXMLTree
00025 {
00027
00029 string GetText(const Element* element);
00030
00032
00034 string GetElementText(const Element* element, const string& elementName);
00035
00037
00038 list<string> GetTextChildren(const Element* element);
00039
00041
00042 ElementList GetElementChildren(const Element* element);
00043
00045
00046 list<Tag*> GetTagChildren(const Element* element);
00047
00049
00053 Element* GetElementByAttribute(const Element* element,
00054 const string& att,
00055 const string& val);
00056
00058 Element* GetElementByName(const Element* element, const string& named) ;
00059
00061 ElementList GetChildrenByName(const Element* element, const string& named) ;
00062
00064 void Add(Element* element, const string& cdata);
00065
00067 void Add(Element* element, Element* newChild);
00068
00070 void Add(Element* element, Tag* tag);
00071
00073 void Delete(Element* element, const string& cdata);
00074
00076 void Delete(Element* element, Element* oldChild);
00077
00079 void Delete(Element* element, Tag* tag);
00080 };
00081 #endif