Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Examples  

AnyElement Struct Reference

Struct that represents any XML element. More...

#include <AnyElement.h>

List of all members.

Public Attributes

XML_NODE_TYPE m_type
const char * m_pchNameOrValue
const char * m_pchNamespace
const char * m_pchAttributes [MAX_NO_OF_ATTRIBUTES *3]


Detailed Description

Struct that represents any XML element.

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.

Author:
Susantha Kumara (susantha@opensource.lk, skumara@virtusa.com)


Member Data Documentation

const char* AnyElement::m_pchAttributes[MAX_NO_OF_ATTRIBUTES*3]
 

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.

const char* AnyElement::m_pchNameOrValue
 

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.

const char* AnyElement::m_pchNamespace
 

Namespace of StartElemnt or EndElement tag. In case there is no namespace this should be NULL (not pointing to empty string "" even)

XML_NODE_TYPE AnyElement::m_type
 

Type of SAX event whose data that an AnyElement can contain.


The documentation for this struct was generated from the following file:
Generated on Tue Jun 29 09:27:58 2004 for AxisC++ by doxygen1.2.18