This file contains several utilities functions for dealing with Xerces in TerraLib. More...
#include "Config.h"
#include <xercesc/dom/DOM.hpp>
#include <xercesc/sax2/Attributes.hpp>
#include <xercesc/util/XMLString.hpp>
#include <string>
Go to the source code of this file.
Namespaces | |
te | |
TerraLib. | |
te::xerces | |
Namespace for TerraLib Xerces module. | |
Functions | |
bool | te::xerces::Equals (const XMLCh *const s1, const char *const s2) |
It return true if the two strings are identical, otherwise, it returns false. More... | |
char * | te::xerces::GetAttributeVal (const xercesc::Attributes &attrs, const XMLCh *const attName) |
It returns the given attribute value. More... | |
bool | te::xerces::NotEquals (const XMLCh *const s1, const char *const s2) |
It return true if the two strings are different, otherwise, it returns false. More... | |
TEXMLEXPORT 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. More... | |
int | te::xerces::ToInt (const XMLCh *value) |
It converts the XML string to an integer value. More... | |
std::string | te::xerces::ToString (const XMLCh *const value) |
It converts the XML string to a standard C++ string. More... | |