#include <XmlFileReader.h>
Public Types | |
typedef XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument | DOMDocument |
Public Member Functions | |
XmlFileReader () | |
virtual | ~XmlFileReader () |
DOMDocument * | Read (const std::string &filePath, bool fileRequired=true) |
Reads a DOM document at the specified address; keep reader 'alive' until doc can be discarded! | |
DOMDocument * | Read (const std::string &filePath, Util::IOBuffer *ioBuf) |
Reads a DOM document from the specified buffer; keep reader 'alive' until doc can be discarded! | |
virtual bool | FileExists (const std::string &address) |
virtual bool | ValidateFile (const std::string &address) |
Static Public Member Functions | |
static std::vector< XERCES_CPP_NAMESPACE_QUALIFIER DOMNode * > | FindChildNodesByName (const XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *const node, const char *const tagName) |
static XERCES_CPP_NAMESPACE_QUALIFIER DOMNodeList * | FindElementsByName (const XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *const doc, const char *const tagName) |
static std::string | GetAttributeValue (const XERCES_CPP_NAMESPACE_QUALIFIER DOMNamedNodeMap *const attributes, const char *const attributeName) |
Private Member Functions | |
bool | InitializeXerces () |
void | ClearParser () |
DOMDocument * | ReadDomDoc (const std::string &filePath, Util::IOBuffer *ioBuf=0) |
void | FinalizeXerces () |
Static Private Member Functions | |
static std::string | GetNodeValue (const XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *const node) |
Private Attributes | |
XERCES_CPP_NAMESPACE_QUALIFIER XercesDOMParser * | mParser |
Definition at line 32 of file XmlFileReader.h.