XmlPullParser Class Reference

#include <XmlPullParser.h>

Collaboration diagram for XmlPullParser:

Collaboration graph
[legend]

List of all members.

Public Types

enum  {
  START_DOCUMENT, END_DOCUMENT, START_TAG, END_TAG,
  TEXT, CDSECT, ENTITY_REF, IGNORABLE_WHITESPACE,
  PROCESSING_INSTRUCTION, COMMENT, DOCDECL
}

Public Member Functions

 XmlPullParser (std::istream &is)
 XmlPullParser (void)
 ~XmlPullParser (void)
bool getFeature (std::string feature)
std::string getInputEncoding ()
void defineEntityReplacementText (std::string entity, std::string value)
int getNamespaceCount (int depth)
std::string getNamespacePrefix (int pos)
std::string getNamespaceUri (int pos)
std::string getNamespace (std::string prefix)
int getDepth ()
std::string getPositionDescription ()
int getLineNumber ()
int getColumnNumber ()
bool isWhitespace ()
std::string getText ()
const char * getTextCharacters (int *poslen)
std::string getNamespace ()
std::string getName ()
std::string getPrefix ()
bool isEmptyElementTag ()
int getAttributeCount ()
std::string getAttributeType (int)
bool isAttributeDefault (int)
std::string getAttributeNamespace (int index)
std::string getAttributeName (int index)
std::string getAttributePrefix (int index)
std::string getAttributeValue (int index)
std::string getAttributeValue (std::string ns, std::string name)
int getEventType ()
int next ()
int nextToken ()
int nextTag ()
void prevTag ()
void require (int type, std::string ns, std::string name)
std::string nextText ()
void setFeature (std::string feature, bool value)
void skipSubTree ()


Detailed Description

Definition at line 46 of file XmlPullParser.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
START_DOCUMENT 
END_DOCUMENT 
START_TAG 
END_TAG 
TEXT 
CDSECT 
ENTITY_REF 
IGNORABLE_WHITESPACE 
PROCESSING_INSTRUCTION 
COMMENT 
DOCDECL 

Definition at line 125 of file XmlPullParser.h.


Constructor & Destructor Documentation

XmlPullParser::XmlPullParser ( std::istream &  is  ) 

Definition at line 26 of file XmlPullParser.cpp.

XmlPullParser::XmlPullParser ( void   ) 

Definition at line 39 of file XmlPullParser.cpp.

XmlPullParser::~XmlPullParser ( void   ) 

Definition at line 97 of file XmlPullParser.cpp.


Member Function Documentation

bool XmlPullParser::getFeature ( std::string  feature  ) 

Definition at line 921 of file XmlPullParser.cpp.

std::string XmlPullParser::getInputEncoding (  ) 

Definition at line 934 of file XmlPullParser.cpp.

void XmlPullParser::defineEntityReplacementText ( std::string  entity,
std::string  value 
)

Definition at line 941 of file XmlPullParser.cpp.

int XmlPullParser::getNamespaceCount ( int  depth  ) 

Definition at line 950 of file XmlPullParser.cpp.

Referenced by Schema::SchemaParser::parseSchemaTag().

std::string XmlPullParser::getNamespacePrefix ( int  pos  ) 

Definition at line 958 of file XmlPullParser.cpp.

Referenced by Schema::SchemaParser::parseSchemaTag().

std::string XmlPullParser::getNamespaceUri ( int  pos  ) 

Definition at line 964 of file XmlPullParser.cpp.

Referenced by Schema::SchemaParser::parseSchemaTag().

std::string XmlPullParser::getNamespace ( std::string  prefix  ) 

Definition at line 970 of file XmlPullParser.cpp.

Referenced by main().

int XmlPullParser::getDepth (  ) 

Definition at line 996 of file XmlPullParser.cpp.

Referenced by Schema::SchemaParser::parseSchemaTag().

std::string XmlPullParser::getPositionDescription (  ) 

Definition at line 1003 of file XmlPullParser.cpp.

int XmlPullParser::getLineNumber (  )  [inline]

int XmlPullParser::getColumnNumber (  )  [inline]

bool XmlPullParser::isWhitespace (  ) 

Definition at line 1055 of file XmlPullParser.cpp.

std::string XmlPullParser::getText (  ) 

Definition at line 1063 of file XmlPullParser.cpp.

Referenced by Schema::SchemaValidator::validate().

const char * XmlPullParser::getTextCharacters ( int *  poslen  ) 

Definition at line 1070 of file XmlPullParser.cpp.

std::string XmlPullParser::getNamespace ( void   )  [inline]

Definition at line 75 of file XmlPullParser.h.

std::string XmlPullParser::getName (  )  [inline]

std::string XmlPullParser::getPrefix ( void   )  [inline]

Definition at line 83 of file XmlPullParser.h.

bool XmlPullParser::isEmptyElementTag (  ) 

Definition at line 1092 of file XmlPullParser.cpp.

int XmlPullParser::getAttributeCount (  )  [inline]

std::string XmlPullParser::getAttributeType ( int   )  [inline]

Definition at line 92 of file XmlPullParser.h.

bool XmlPullParser::isAttributeDefault ( int   )  [inline]

Definition at line 96 of file XmlPullParser.h.

std::string XmlPullParser::getAttributeNamespace ( int  index  ) 

Definition at line 1100 of file XmlPullParser.cpp.

Referenced by Schema::SchemaValidator::validate().

std::string XmlPullParser::getAttributeName ( int  index  ) 

std::string XmlPullParser::getAttributePrefix ( int  index  ) 

Definition at line 1116 of file XmlPullParser.cpp.

std::string XmlPullParser::getAttributeValue ( int  index  ) 

std::string XmlPullParser::getAttributeValue ( std::string  ns,
std::string  name 
)

Definition at line 1132 of file XmlPullParser.cpp.

int XmlPullParser::getEventType (  )  [inline]

int XmlPullParser::next (  ) 

Definition at line 1145 of file XmlPullParser.cpp.

Referenced by Schema::SchemaParser::parseSchemaTag(), and skipSubTree().

int XmlPullParser::nextToken (  ) 

Definition at line 1171 of file XmlPullParser.cpp.

Referenced by Schema::SchemaValidator::validate().

int XmlPullParser::nextTag (  ) 

void XmlPullParser::prevTag (  ) 

Definition at line 1181 of file XmlPullParser.cpp.

void XmlPullParser::require ( int  type,
std::string  ns,
std::string  name 
)

std::string XmlPullParser::nextText (  ) 

Definition at line 1213 of file XmlPullParser.cpp.

void XmlPullParser::setFeature ( std::string  feature,
bool  value 
)

Definition at line 1236 of file XmlPullParser.cpp.

Referenced by main(), and Schema::SchemaParser::SchemaParser().

void XmlPullParser::skipSubTree (  ) 

Skip sub tree that is currently parser positioned on.
NOTE: parser must be on START_TAG and when funtion returns parser will be positioned on corresponding END_TAG.

Definition at line 1269 of file XmlPullParser.cpp.

References END_TAG, next(), and START_TAG.

Referenced by Schema::SchemaValidator::validate().


The documentation for this class was generated from the following files:

Generated on Sat Jan 10 19:07:11 2009 for wsdlpull by  doxygen 1.5.5