26 #ifndef __TERRALIB_XERCES_INTERNAL_CONTENTHANDLER_H 
   27 #define __TERRALIB_XERCES_INTERNAL_CONTENTHANDLER_H 
   30 #include "../xml/Enums.h" 
   37 #include <xercesc/sax2/ContentHandler.hpp> 
   72         void characters(
const XMLCh* 
const chars, 
const XMLSize_t length);
 
   90         void endElement(
const XMLCh* 
const uri, 
const XMLCh* 
const localname, 
const XMLCh* 
const qname);
 
  100         void ignorableWhitespace(
const XMLCh* 
const chars, 
const XMLSize_t length);
 
  110         void processingInstruction(
const XMLCh* 
const target, 
const XMLCh* 
const data);
 
  117         void setDocumentLocator(
const xercesc::Locator* 
const locator);
 
  124         void startDocument();
 
  136         void startElement(
const XMLCh* 
const uri, 
const XMLCh* 
const localname, 
const XMLCh* 
const qname, 
const xercesc::Attributes& attrs);
 
  146         void startPrefixMapping(
const XMLCh* 
const prefix, 
const XMLCh* 
const uri);
 
  155         void endPrefixMapping(
const XMLCh* 
const prefix);
 
  164         void skippedEntity(
const XMLCh* 
const name);
 
  209         const std::pair<const XMLCh*, const XMLCh*>& 
getNamespace(std::size_t i)
 const { 
return m_nspaces[i]; }
 
  213         bool isInContractedForm() 
const;
 
  215         void setInContractedForm(
bool d);
 
  225         std::vector<std::pair<const XMLCh*, const XMLCh*> > 
m_nspaces;  
 
  233 #endif  // __TERRALIB_XERCES_INTERNAL_CONTENTHANDLER_H 
const XMLCh * m_localname
The local part of the current element name. 
 
const XMLCh * m_qname
The QName of the current element. 
 
std::size_t getNumberOfNamespaces() const 
 
const xercesc::Attributes * getElementAttrs() const 
TODO. 
 
const XMLCh * getElementQName() const 
TODO. 
 
const std::pair< const XMLCh *, const XMLCh * > & getNamespace(std::size_t i) const 
 
const XMLCh * m_uri
URI of the associated namespace for the current element. 
 
NodeType
The type of node read by XML reader. 
 
This class implements Xerces interface for a handler that receives general document events...
 
const xercesc::Attributes * m_attrs
The attributes attached to the current element, if any. 
 
const XMLCh * getElementURI() const 
TODO. 
 
const XMLCh * m_value
May be characters from the XML document, ignorable white spaces, CDATA or any other string...
 
bool m_isInContractedForm
A flag that indicates if the reader handler is on an contracted form element. 
 
const XMLCh * getElementLocalName() const 
TODO. 
 
#define TEXERCESEXPORT
You can use this macro in order to export/import classes and functions from this module. 
 
XMLSize_t getDataLen() const 
 
const XMLCh * getElementValue() const 
 
std::vector< std::pair< const XMLCh *, const XMLCh * > > m_nspaces
A vector of namespaces (prefix, uri). 
 
XMLSize_t m_len
The number of characters in the m_value array. 
 
te::xml::NodeType m_nodeType
The type of node read by the parser. 
 
~ReaderHandler()
Destructor.