You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by Apache Wiki <wi...@apache.org> on 2005/08/22 06:44:58 UTC
[Ws Wiki] Update of "SummerOfCode/2005/guththila/21" by DineshPremalal
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Ws Wiki" for change notification.
The following page has been changed by DineshPremalal:
http://wiki.apache.org/ws/SummerOfCode/2005/guththila/21
New page:
=== Week ending 21st of August 2005 ===
=== Current Status ===
Finished work on first proto type.
----------------------
Finished worked on first proto type, which can parse xml document. It could process attributes and names well. For the time being
Guththila C parser has following API
XML_PullParser_createPullParser ()
XML_PullParser_freePullParser ()
XML_PullParser_next ()
XML_PullParser_getAttribute ()
XML_PullParser_getAttributeName ()
XML_PullParser_getAttributePrefix ()
XML_PullParser_getAttributeValue ()
XML_PullParser_getAttributeCount ()
XML_PullParser_getName ()
XML_PullParser_getPrefix ()
The use who createPullParser is responsible for calling freePullParser method after using all the stuff.
Internally it uses a stack which implemented in using single link list. Basically stack is used for store tokens and attributes. Stack could store Elements , element is a stucture
typedef struct element ELEMENT;
typedef struct element
{
TOKEN *token;
ATTRIBUTE *attribute;
ELEMENT *prev;
};
Therefore I was able to use same stack for ( two instance of STACK) both tokens and attributes.
Hope to put current sources to the CVS , then devs could review the code. :)
=== Special Notes ===
* Need to work on Namespace support for Guththila C implementation.
* Need to finish encoding support (UTF-8 and UTF-16 ) after Namespace support.