26 #ifndef __TERRALIB_XERCES_INTERNAL_READER_H
27 #define __TERRALIB_XERCES_INTERNAL_READER_H
30 #include "../xml/Reader.h"
37 #include <xercesc/util/XercesDefs.hpp>
40 XERCES_CPP_NAMESPACE_BEGIN
44 XERCES_CPP_NAMESPACE_END
76 void setDoNamespaces(
bool d);
78 void setDoSchema(
bool d);
80 void setValidationScheme(
bool d);
82 void setUseCachedGrammarInParse(
bool d);
84 void setCacheGrammarFromParse(
bool d);
86 void setIgnoreWhiteSpaces(
bool d);
88 void read(
const std::string& fileURI);
94 std::string getElementURI()
const;
96 std::string getElementLocalName()
const;
98 std::string getElementQName()
const;
100 std::string getElementValue()
const;
102 std::size_t getElementDataLen()
const;
104 bool hasAttrs()
const;
106 std::size_t getNumberOfAttrs()
const;
108 std::string getAttr(
const std::string& name)
const;
110 std::string getAttr(std::size_t i)
const;
112 std::string getAttrLocalName(std::size_t i)
const;
114 std::string getAttrQName(std::size_t i)
const;
116 std::string getAttrURI(std::size_t i)
const;
118 std::size_t getAttrPosition(
const std::string& name)
const;
120 std::size_t getNumberOfNamespaces()
const;
122 void getNamespace(std::size_t i, std::pair<std::string, std::string>& ns)
const;
124 void setInternalBufferSize(
const std::size_t size);
147 #endif // __TERRALIB_XERCES_INTERNAL_READER_H
A class that models a XML reader object built on top of Xerces-C++.
This class models a XML reader object.
bool m_ignoreWhiteSpaces
A flag that indicates if the parser should ignore white spaces.
ErrorHandler * m_errH
A pointer to an error handler.
NodeType
The type of node read by XML reader.
This class implements Xerces interface for a handler that receives general document events...
xercesc::SAX2XMLReader * m_parser
A pointer to the parser used by the reader.
ReaderHandler * m_readerH
A pointer to a content handler.
xercesc::XMLPScanToken * m_token
This keeps the parser state.
This class implements Xerces interface for error handlers.
#define TEXERCESEXPORT
You can use this macro in order to export/import classes and functions from this module.