8 #include <xercesc/parsers/XercesDOMParser.hpp>
9 #include <xercesc/sax/ErrorHandler.hpp>
10 #include <xercesc/dom/DOMDocument.hpp>
32 void warning(
const XERCES_CPP_NAMESPACE::SAXParseException& e);
33 void error(
const XERCES_CPP_NAMESPACE::SAXParseException& e);
34 void fatalError(
const XERCES_CPP_NAMESPACE::SAXParseException& e);
53 cString = XERCES_CPP_NAMESPACE::XMLString::transcode(toTranscode);
57 XERCES_CPP_NAMESPACE::XMLString::release(&cString);
63 bool GetValue(
float* valuePtr)
const;
67 operator const char* ()
const
82 xString = XERCES_CPP_NAMESPACE::XMLString::transcode(cString);
86 XERCES_CPP_NAMESPACE::XMLString::release(&xString);
89 operator const XMLCh* ()
const
104 const char itemName[],
float* valuePtr);
112 const char itemName[], std::string* valuePtr);
120 const char itemName[],
bool* valuePtr);
127 bool ParseFile(
const std::string& fileName);
void warning(const XERCES_CPP_NAMESPACE::SAXParseException &e)
Basic methods for reading XML files.
void fatalError(const XERCES_CPP_NAMESPACE::SAXParseException &e)
XmlBase()
Creates an unitialized object.
void error(const XERCES_CPP_NAMESPACE::SAXParseException &e)
XERCES_CPP_NAMESPACE::XercesDOMParser * parserPtr
XERCES_CPP_NAMESPACE::DOMDocument * documentPtr
static bool GetAttributeValue(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *nodePtr, const char itemName[], float *valuePtr)
Gets an item value for certain node.
void Terminate()
Terminates Xerces objects.
Class for auto conversion from C strings to Xerces strings.
bool ParseFile(const std::string &fileName)
Checks if the file comforms to DTD.
bool getSawErrors() const
bool operator==(const char *other) const
Check against a C string.
bool GetValue(int *valuePtr) const
Class for auto conversion from Xerces strings to C strings.
Provides pretty errors messages for Xerces.
XercesString(const char *cString)
TempCString(const XMLCh *const toTranscode)