You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Dasarath Weeratunge <da...@yahoo.com> on 2004/11/22 10:54:04 UTC

TSPP update

Updated code is attached. Basically, TSPP now supports
the following StAX API for ASCII input.

class XmlPullParser
{
//////////////////////////////////////
//
public:	
	enum {
		XMLDecl= 0, STag, EmptyElemTag, ETag, Content
	};
	
	XmlPullParser(InputStream *in);
	~XmlPullParser();

	int next();
	
	char *getName();
	char *getPrefix();
	char *getNamespaceUri();
	char *getValue();
	
	int getDepth();
	int getNamespaceCount(int i);
	char *getNamespacePrefix(int i);
	char *getNamespaceUri(int i);

	int getAttributeCount();
	char *getAttributeName(int i);
	char *getAttributeValue(int i);
	char *getAttributePrefix(int i);
	char *getAttributeNamespaceUri(int i);
};

Susantha is working on adding support for encoding
types. Once that is finalized we can look at tStAX --
the typed API.

--Dasarath


		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com