#include <xml.h>
Inheritance diagram for GNUMessenger::XMLParser:


Public Types | |
| enum | Type { File, String } |
| The type of input. | |
Public Member Functions | |
| XMLParser (const string &data="", Type type=XMLParser::String) | |
| Construct a new parser, may throw ParseFailure or DiskError. | |
| XMLParser (XMLNode &root) | |
| Set a XMLNode as root. | |
| int | tree_to_xml (string &line) |
| Write the XML Tree to to line. | |
| int | tree_to_file (const string &filename) |
| may throw DiskError | |
| vector< XMLNode > | get_tags (const string &key) |
| Get all tags in the tree whose name are key. | |
| XMLNode & | get_root () |
| Return the root tag. | |
| int | lock (const string &fname) |
| int | release (const string &fname) |
| int | bad () |
| int | good () |
| int | getParsed () const |
Static Public Member Functions | |
| int | printTag (const XMLNode &node, string &ret, int indent=0) |
| string | escape (string str) |
Protected Member Functions | |
| virtual void | recievedTag (XMLNode &n) |
| This method is called whenever a new tag is recieved. | |
| virtual void | rootTagRecieved (XMLNode &n) |
| This method is called when the first complete tag is recieved. | |
| virtual void | parserError (const string &errorMsg, int line) |
This class a string and parsers it to build a XML tree.
Usually you dont need to use this class directly, you can parse strings and convert XMLNodes to string directly with the XMLNode class.
Definition at line 27 of file xml.h.
|
||||||||||||
|
Construct a new parser, may throw ParseFailure or DiskError.
|
|
|
Get all tags in the tree whose name are key.
|
|
|
This method is called whenever a new tag is recieved. You should ovveride this. Reimplemented from GNUMessenger::Expat. Definition at line 192 of file xml.cpp. References GNUMessenger::XMLNode::addChild().
Here is the call graph for this function: ![]() |
|
|
Write the XML Tree to to line.
|
1.3.8