Planeshift
Classes | Functions

psxmlparser.h File Reference

#include "util/psstring.h"
#include <csutil/xmltiny.h>
#include <csutil/objreg.h>
#include <iutil/vfs.h>
#include "util/log.h"

Go to the source code of this file.

Classes

class  psXMLString
class  psXMLTag

Functions

void CopyXMLNode (iDocumentNode *source, iDocumentNode *target, int mode)
 Copies/merges children and attributes of 'source' to 'target'.
csString EscpXML (const char *str)
 Escapes special XML characters in 'str'.
csString GetNodeXML (iDocumentNode *node, bool childrenOnly=false)
 Generates XML representing given node.
csPtr< iDocument > ParseFile (iObjectRegistry *object_reg, const csString &name)
 Loads and parses a XML file, then returns its parsed XML document.
csPtr< iDocument > ParseString (const csString &str, bool notify=true)
 Parses a XML string, then returns the parsed document.
csPtr< iDocumentNode > ParseStringGetNode (const csString &str, const csString &topNodeName, bool notify=true)
 Parses a XML string, then returns the top node with name 'topNodeName'.