GP32 Xml Parsers ?


M-.-n posted on Jul 28 2005 at 11:23 AM said:
I'm looking for a tiny XML parser that can easily be ported to the GP, i.e. that does not rely on stdio.h. Any hints ?

Thanks !

www.sourceforge.net/projects/tinyxml ?
 
Last edited by a moderator:
I wrote one myself which is available from my site, but it is not fully features and uses my own interface, but it works on GP32 already for simple XML:

http://www.pea.co.nz/gp32/downloads.php#xml

A simple XML library to load/save, parse and navigate XML files. This is a beta release, and althought I haven't run into any bugs yet, there are sure to be some. No docs yet, just read the header file - its well documented!

Features include:
- Load and Save an XML file, as well as parse loaded text file.
- Supports attributes with or without quotes (single and double).
- Supports attributes with no value (flags).
- Create nodes and attributes within nodes.
- Add nodes as child nodes or siblings.
- Delete nodes.
- Search XML tree for nodes.
- Search nodes for attributes.
- Navigate the XML tree (first,l ast, prev, next etc)

When I posted this a while back, there was also an XML library available from the spanish boards. I'll find the link...

EDIT:
Ok here is the origional post. I have updated the XML functions since this post, but Mortimor posted a lib that he also did for the GP32 a few posts down:
http://www.gp32x.de/board/index.php?showtopic=18026

It looks a bit more complicated than mine, but it may also have a standard interface? Not really sure - I don't use XML much.

Also, my library doesn't support the following:
Support for declaration tags <?something>
Support for DTD tags <!something>
Support for substitution/variables (whatever they are called)
Comments
Reordering nodes within the tree (yet)
Copying nodes (yet)
 
Last edited by a moderator:
pea posted on Jul 28 2005 at 11:20 PM said:
I wrote one myself which is available from my site, but it is not fully features and uses my own interface, but it works on GP32 already for simple XML:

http://www.pea.co.nz/gp32/downloads.php#xml

Nice ! It will certainly cover my needs for the very short term !

www.sourceforge.net/projects/tinyxml ?

Yeah.. that is where I was heading. It is nice & cross-platform already so minimal touch up should be needed to compile it for the GP (mainly file operations). I'm just a little ennoyed that the only rendering scheme seems to be file-based instead of something with generic stream.

Thanks for your help, both of u.
Marc
 
Last edited by a moderator:
Back
Top