#include <AnyElement.h>
Public Attributes | |
XML_NODE_TYPE | m_type |
const char * | m_pchNameOrValue |
const char * | m_pchNamespace |
const char * | m_pchAttributes [MAX_NO_OF_ATTRIBUTES *3] |
This structure can represent any xml element that a SOAP message contains. Any parser implementation's next(..) or anyNext() methods will return a constant instance of this struct that will contain a xml element. In SAX parser perspective this structure can contain information of StartElement, EndElement, Character data element or a prefix mapping event.
|
Each attribute has 3 entities: localname, namespace and value in order This char* array can contain upto MAX_NO_OF_ATTRIBUTES attributes. When a parser fills in this array the order should be localname, namespace and then value. If there is no prefix in an attribute the namespace should be NULL (note: The localname can never be null for an attribute. Then anyone consuming these attributes will increment the index by 3 starting from 0 (0, 3, 6 ... etc) and if that position in the array is NULL it is understood as the end of attributes. |
|
Local name in case of StartElement or EndElement event. Character data in case of character data event. Namespace prefix in case of prefix prefix mapping event. |
|
Namespace of StartElemnt or EndElement tag. In case there is no namespace this should be NULL (not pointing to empty string "" even) |
|
Type of SAX event whose data that an AnyElement can contain. |