19 #ifndef PS_XML_PARSER_H 20 #define PS_XML_PARSER_H 23 #include <csutil/xmltiny.h> 24 #include <csutil/objreg.h> 25 #include <iutil/vfs.h> 35 csPtr<iDocument>
ParseFile(iObjectRegistry* object_reg,
const csString & name);
40 csPtr<iDocument>
ParseString(
const csString & str,
bool notify =
true);
45 csPtr<iDocumentNode>
ParseStringGetNode(
const csString & str,
const csString & topNodeName,
bool notify =
true);
50 csString
EscpXML(
const char * str);
57 csString
GetNodeXML(iDocumentNode* node,
bool childrenOnly =
false);
66 void CopyXMLNode(iDocumentNode* source, iDocumentNode* target,
int mode);
75 int FindTag(
const char* tagName,
int start=0 );
107 csString::operator=(str);
125 str.
GetTag( where, *
this );
128 void GetTagParm(
const char* param, csString& value);
129 void GetTagParm(
const char* param,
int& value);
130 void GetTagParm(
const char* param,
double& value);
131 void GetTagParm(
const char* param,
float& value);
csPtr< iDocument > ParseFile(iObjectRegistry *object_reg, const csString &name)
Loads and parses a XML file, then returns its parsed XML document.
void operator=(const char *str)
size_t FindNextTag(size_t start)
size_t GetTagSection(int start, const char *tagName, psXMLString &tagSection)
int FindTag(const char *tagName, int start=0)
size_t GetWithinTagSection(int start, const char *tagName, psXMLString &tagSection)
GetWithinTagSection return the psXMLString section text of a tag.
csPtr< iDocumentNode > ParseStringGetNode(const csString &str, const csString &topNodeName, bool notify=true)
Parses a XML string, then returns the top node with name 'topNodeName'.
size_t FindMatchingEndTag(int iStart, const char *tagName)
psXMLTag(psXMLString &str, int where)
csString GetNodeXML(iDocumentNode *node, bool childrenOnly=false)
Generates XML representing given node.
csPtr< iDocument > ParseString(const csString &str, bool notify=true)
Parses a XML string, then returns the parsed document.
size_t GetTag(int start, psXMLTag &tag)
csString EscpXML(const char *str)
Escapes special XML characters in 'str'.
psXMLString(const char *str)
void CopyXMLNode(iDocumentNode *source, iDocumentNode *target, int mode)
Copies/merges children and attributes of 'source' to 'target'.