Namespace for TerraLib Xerces module. More...
Classes | |
| class | ErrorHandler |
| This class implements Xerces interface for error handlers. More... | |
| class | Globals |
| A singleton class with global definitions. More... | |
| class | Module |
| The TerraLib Xerces module is a plugin. More... | |
| class | Reader |
| A class that models a XML reader object built on top of Xerces-C++. More... | |
| class | ReaderFactory |
| This is the concrete factory for XML reader built on top of Xerces-C++ parser. More... | |
| class | ReaderHandler |
| This class implements Xerces interface for a handler that receives general document events. More... | |
| class | StrToXMLCh |
| A class for converting a standard string to a Xerces string (XMLCh). More... | |
| class | XMLChToStr |
| A class for converting a Xerces string (XMLCh) to a standard string. More... | |
Functions | |
| bool | Equals (const XMLCh *const s1, const char *const s2) |
| It return true if the two strings are identical, otherwise, it returns false. More... | |
| char * | GetAttributeVal (const xercesc::Attributes &attrs, const XMLCh *const attName) |
| It returns the given attribute value. More... | |
| bool | NotEquals (const XMLCh *const s1, const char *const s2) |
| It return true if the two strings are different, otherwise, it returns false. More... | |
| TEXERCESEXPORT xercesc::DOMDocument * | readXML (const std::string &xmlFile, const bool doNamespace=false, const bool doSchema=false, const bool valid=false) |
| It reads the XML file using the DOM API. More... | |
| int | ToInt (const XMLCh *value) |
| It converts the XML string to an integer value. More... | |
| std::string | ToString (const XMLCh *const value) |
| It converts the XML string to a standard C++ string. More... | |
Namespace for TerraLib Xerces module.
This is the namespace for the TerraLib XML support built on top of Xerces-C++.
|
inline |
It return true if the two strings are identical, otherwise, it returns false.
| s1 | The first string to compare. |
| s2 | The second string to compare. |
|
inline |
It returns the given attribute value.
| attrs | The attributes attached to an element, if any. |
| attName | The name of the attribute we are looking for its value. |
|
inline |
It return true if the two strings are different, otherwise, it returns false.
| s1 | The first string to compare. |
| s2 | The second string to compare. |
| xercesc::DOMDocument * te::xerces::readXML | ( | const std::string & | xmlFile, |
| const bool | doNamespace = false, |
||
| const bool | doSchema = false, |
||
| const bool | valid = false |
||
| ) |
It reads the XML file using the DOM API.
| xmlFile | The XML file to be read. |
| doNamespace | If true the namespace processing will be done. |
| doSchema | If true the parser will attempt to use the XML schema. |
| valid | If true the parser will valid the XML file against the schema. |
| Exception | If the parser can not read the file it will raise an exception. |
Definition at line 42 of file Utils.cpp.
References TE_TR, and ToString().
|
inline |
|
inline |
It converts the XML string to a standard C++ string.
| value | An XML string containing a valid string value. |
Definition at line 122 of file Utils.h.
Referenced by te::xerces::ErrorHandler::error(), te::xerces::ErrorHandler::fatalError(), te::xerces::Reader::getAttr(), te::xerces::Reader::getAttrLocalName(), te::xerces::Reader::getAttrQName(), te::xerces::Reader::getAttrURI(), te::xerces::Reader::getElementLocalName(), te::xerces::Reader::getElementQName(), te::xerces::Reader::getElementURI(), te::xerces::Reader::getElementValue(), te::xerces::Reader::getNamespace(), te::xerces::Reader::next(), te::xerces::Reader::read(), readXML(), te::xerces::Reader::reset(), and te::xerces::ErrorHandler::warning().