#include <xml_document.h>
Inheritance diagram for mimas::xml_document:


Public Member Functions | |
| xml_document (const std::string &schemaURI) | |
| Initialise xml-parser. | |
| void | load (const char *fileName) throw (mimasexception) |
| Load XML-file. | |
| void | save (const char *fileName) throw (mimasexception) |
| Save XML-file. | |
| void | fromString (const std::string &string) throw (mimasexception) |
| Read XML-document from string. | |
| void | fromInputSource (InputSource &inputSource) throw (mimasexception) |
| Read XML-document from Xerces-input-source. | |
| const XalanDocument * | getDocument (void) const |
| Get pointer to XML-DOM. | |
| xml_reference< XalanElement > | getDocumentElement (void) |
| Get root-element of XML-DOM. | |
Protected Attributes | |
| xml_errorhandler | xmlErrorHandler |
| Error handler for catching parse errors. | |
| const XalanDocument * | document |
| The XML DOM. | |
Don't forget to add the following initialization code to your main application, before using this class:
XMLPlatformUtils::Initialize();
XPathInit oTheXPathInit;
XMLPlatformUtils::Terminate();
Definition at line 66 of file xml_document.h.
| mimas::xml_document::xml_document | ( | const std::string & | schemaURI | ) |
Initialise xml-parser.
A URI for verification consists of two parts:
| schemaURI | URI of XSD-file to be used for verifiaction. Specify "" for no verification. |
| void mimas::xml_document::load | ( | const char * | fileName | ) | throw (mimasexception) |
Load XML-file.
Load a XML-file and perform verification, if necessary.
| fileName | Name of file to load. |
| void mimas::xml_document::save | ( | const char * | fileName | ) | throw (mimasexception) |
Save XML-file.
| fileName | Name of file to write XML-document to. |
| void mimas::xml_document::fromString | ( | const std::string & | string | ) | throw (mimasexception) |
Read XML-document from string.
| string | String to read XML-document from. |
| void mimas::xml_document::fromInputSource | ( | InputSource & | inputSource | ) | throw (mimasexception) |
Read XML-document from Xerces-input-source.
| inputSource | An object of input-source-type. |
| const XalanDocument* mimas::xml_document::getDocument | ( | void | ) | const [inline] |
Get pointer to XML-DOM.
Definition at line 92 of file xml_document.h.
References document.
| xml_reference< XalanElement > mimas::xml_document::getDocumentElement | ( | void | ) | [inline] |
Get root-element of XML-DOM.
Definition at line 96 of file xml_document.h.
References document.
| XalanSourceTreeDOMSupport* mimas::xml_document::getDOMSupport | ( | void | ) | [inline] |
| XPathEnvSupportDefault* mimas::xml_document::getEnvSupport | ( | void | ) | [inline] |
| XPathFactoryDefault* mimas::xml_document::getXPathFactory | ( | void | ) | [inline] |
Definition at line 113 of file xml_document.h.
| XPathExecutionContextDefault* mimas::xml_document::getExecutionContext | ( | void | ) | [inline] |
| XalanSourceTreeDOMSupport* mimas::xml_document::getDOMSupport | ( | void | ) | [inline] |
| XPathEnvSupportDefault* mimas::xml_document::getEnvSupport | ( | void | ) | [inline] |
| XPathFactoryDefault* mimas::xml_document::getXPathFactory | ( | void | ) | [inline] |
Definition at line 113 of file xml_document.h.
| XPathExecutionContextDefault* mimas::xml_document::getExecutionContext | ( | void | ) | [inline] |
XalanSourceTreeDOMSupport mimas::xml_document::theDOMSupport [protected] |
XalanSourceTreeParserLiaison mimas::xml_document::theLiaison [protected] |
Definition at line 125 of file xml_document.h.
xml_errorhandler mimas::xml_document::xmlErrorHandler [protected] |
const XalanDocument* mimas::xml_document::document [protected] |
The XML DOM.
Definition at line 130 of file xml_document.h.
Referenced by getDocument(), and getDocumentElement().
XPathEnvSupportDefault mimas::xml_document::theEnvSupport [protected] |
XObjectFactoryDefault mimas::xml_document::theXObjectFactory [protected] |
Definition at line 137 of file xml_document.h.
XPathFactoryDefault mimas::xml_document::theXPathFactory [protected] |
Definition at line 144 of file xml_document.h.
XPathExecutionContextDefault mimas::xml_document::theExecutionContext [protected] |
XalanSourceTreeDOMSupport mimas::xml_document::theDOMSupport [protected] |
XalanSourceTreeParserLiaison mimas::xml_document::theLiaison [protected] |
Definition at line 125 of file xml_document.h.
XPathEnvSupportDefault mimas::xml_document::theEnvSupport [protected] |
XObjectFactoryDefault mimas::xml_document::theXObjectFactory [protected] |
Definition at line 137 of file xml_document.h.
XPathFactoryDefault mimas::xml_document::theXPathFactory [protected] |
Definition at line 144 of file xml_document.h.
XPathExecutionContextDefault mimas::xml_document::theExecutionContext [protected] |