 |
Author |
Topic: xml parsing help | tech-note-to-be? (Read 805 times) |
|
pollux

|
xml parsing help | tech-note-to-be?
« on: Nov 21st, 2003, 7:59am » |
|
i'm having trouble with xml parsing on an applet. could somebosy please throw me some ideas or code on how to use parsers ( ) inside an applet? i don't want to have to learn java to do it (that's exactly why i like processing) if you need more information on the project, go to http://www.fluidtime.net/ it is an open source project from IDII, so i can post the code here and the main idea, but thought it would be easier (and more helpful for the coming generations) if we make this thread on basic xml event based parsing. so i wanted to know: 1. which parser could run better on an applet, simple xml code, no validation, event based. (i have ran into xerces, QDparser, piccolo, kxml2). 2. how to build the parsing classes. (and understand them) 3. *IMPORTANT* how to use the parsing classes. (implementation/code to use from inside processing) 4. any other relevant and/or important and/or available information on the subject. i really don't know if it's getting too technical, so if somebody can start by throwing his/her two cents, maybe this thread could build up into a tech note on xml parsing, not trivial nowadays, and getting more useful by the minute.
|
pollux | www.frwrd.net
|
|
|
Jerronimo
|
Re: xml parsing help | tech-note-to-be?
« Reply #1 on: Nov 21st, 2003, 3:07pm » |
|
Once this weekend passes, I'll be devoting full-time to getting my xml parsing framework up and running. It's based on the (15kbyte) MinML2 at its core (http://www.wilson.co.uk/xml/minml2.htm), but with some additional wrappers around it to make it *simple* to use.
|
« Last Edit: Nov 21st, 2003, 3:08pm by Jerronimo » |
|
|
|
|
ed

|
Re: xml parsing help | tech-note-to-be?
« Reply #3 on: Jan 14th, 2004, 5:57pm » |
|
I just bumped into this old thread and realised I did have a couple of cents to rub together. It's an outrageous shortcut but may be one that others find tempting and maybe even useful. If all you want is to suck data out of a fairly simple and reliably specified xml format then it's surprisingly easy to simply scoot through the text looking for tags with String.indexOf . It's totally non-robust and embarrassingly crude but was all I needed for recentevents (source + project at http://www.aec.at/en/festival/programm/codedoc/burton/project.asp ) to siphon the contents of an RSS xml newsfeed from the BBC World Service and is also the very lazy technique that Moovl (http://www.soda.co.uk/moovl ) uses to read and write it's very simple vector format in and out of processing.
|
« Last Edit: Jan 14th, 2004, 6:01pm by ed » |
|
|
|
|
|