23 #include "StringUtil.h"
32 typedef map<string,string> AttributeList;
33 typedef map<string,Element> ElementMap;
34 typedef vector<Element> ElementList;
35 void addElement(
Element element);
36 void removeElement(
Element element);
38 void addAttribute(
string key,
string value);
39 void removeAttribute(
string key);
41 AttributeList getAttributes();
42 string getAttribute(
string);
43 ElementList getChildElements();
46 string getTagNameSpc();
47 string getNewTagNameSpc(
string);
49 void setTagName(
string tagName);
52 bool getCdata()
const;
54 string getText()
const;
56 Element getElementByName(
string);
57 ElementList getElementsByName(
string name);
59 string renderChildren();
61 AttributeList attributes;