30 #include <xercesc/sax/Locator.hpp> 31 #include <xercesc/sax2/Attributes.hpp> 32 #include <xercesc/util/XMLChar.hpp> 33 #include <xercesc/util/XMLString.hpp> 44 m_isInContractedForm(false)
88 const XMLCh*
const ,
const XMLCh*
const )
116 m_nspaces.push_back(std::pair<const XMLCh*, const XMLCh*>(prefix, uri));
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.
void endPrefixMapping(const XMLCh *const prefix)
It receives notification of the end of an namespace prefix mapping.
void setNodeType(te::xml::NodeType type)
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.
const xercesc::Attributes * m_attrs
The attributes attached to the current element, if any.
void characters(const XMLCh *const chars, const XMLSize_t length)
It receives notification of character data.
static te::dt::DateTime d(2010, 8, 9, 15, 58, 39)
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...
This class implements Xerces interface for a handler that receives general document events...
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.
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
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.
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.