FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Integration
(Moderators: fry, REAS)
   xml parsing help | tech-note-to-be?
« Previous topic | Next topic »

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

WWW Email
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

WWW
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 »  
pollux

WWW Email
Re: xml parsing help | tech-note-to-be?
« Reply #2 on: Nov 30th, 2003, 10:51pm »

ok, the problems i had were computer-related, not the parser itself. now i have two methods that can be described here later. but i have to solve first one little porblem with my computer, please refer to post
 
http://proce55ing.net/discourse/yabb/board_Programs_action_disp_lay_num_1070228911.html
 
as soon as i solve that, i'll post the xml parsing code.
 

pollux | www.frwrd.net
ed

WWW Email
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 »  
REAS


WWW
Re: xml parsing help | tech-note-to-be?
« Reply #4 on: Jan 15th, 2004, 2:13am »

toxi has gotten processing to work with nanoXML. i've tried his demo and had success. the thread is here:
 
http://proce55ing.net/discourse/yabb/board_Tools_action_display__num_1070627124.html
 
Pages: 1 

« Previous topic | Next topic »