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);
 
  136         void startElement(
const XMLCh* 
const uri, 
const XMLCh* 
const localname, 
const XMLCh* 
const qname, 
const xercesc::Attributes& attrs);
 
  225         std::vector<std::pair<const XMLCh*, const XMLCh*> > 
m_nspaces;  
 
  233 #endif  // __TERRALIB_XERCES_INTERNAL_CONTENTHANDLER_H 
void processingInstruction(const XMLCh *const target, const XMLCh *const data)
It receives notification of a processing instruction. 
 
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. 
 
void endPrefixMapping(const XMLCh *const prefix)
It receives notification of the end of an namespace prefix mapping. 
 
const XMLCh * getElementQName() const 
TODO. 
 
void setNodeType(te::xml::NodeType type)
 
const std::pair< const XMLCh *, const XMLCh * > & getNamespace(std::size_t i) const 
 
void setDocumentLocator(const xercesc::Locator *const locator)
It receives an object for locating the origin of SAX document events. 
 
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. 
 
void characters(const XMLCh *const chars, const XMLSize_t length)
It receives notification of character data. 
 
void ignorableWhitespace(const XMLCh *const chars, const XMLSize_t length)
It receives notification of ignorable whitespace in element content. 
 
const XMLCh * m_value
May be characters from the XML document, ignorable white spaces, CDATA or any other string...
 
void startDocument()
It receives notification of the beginning of a document. 
 
bool m_isInContractedForm
A flag that indicates if the reader handler is on an contracted form element. 
 
const XMLCh * getElementLocalName() const 
TODO. 
 
void endDocument()
It receives notification of the end of a document. 
 
te::xml::NodeType getNodeType() const 
It return the type of node read by the handler. 
 
ReaderHandler()
Default constructor. 
 
void endElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname)
It receives notification of the end of an element. 
 
void startPrefixMapping(const XMLCh *const prefix, const XMLCh *const uri)
It receives notification of the start of an namespace prefix mapping. 
 
bool isInContractedForm() const 
 
XMLSize_t getDataLen() const 
 
const XMLCh * getElementValue() const 
 
void setInContractedForm(bool d)
 
void skippedEntity(const XMLCh *const name)
It receives notification of a skipped entity. 
 
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. 
 
void startElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const xercesc::Attributes &attrs)
It receives notification of the beginning of an element.