We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › Recursive XML Read & multiple XML file loading
Page Index Toggle Pages: 1
Recursive XML Read & multiple XML file loading (Read 630 times)
Recursive XML Read & multiple XML file loading
Dec 18th, 2007, 9:27pm
 
Hi all !

I'd like to use your so GREAT experiencies/knowledge.


I'm working on a visualization of a social network that provides xml file for each user.
in each xml file, there are names which refer to other xml user file.

I'd like to read the first xml file for the "seed" user (i.e the point from which the network construction begins) and to recursively read all the xml file quoted in the seed xml user file and etc etc (with a constant and not infinite depth of course..)

with proXML I had some problems (cause I'm not an expert)
How can I do to open an xml file, and another, etc etc etc ?
each time I do that, XMLEvent is called and it gives me problems!

I'd like to use a function instead of XMLEvent function.

any ideas ? any experiencies ?

indeed, without using XMLEvent function, I can't get the element structure and thus I can't begin my construction...

talk soon
Re: Recursive XML Read & multiple XML file loa
Reply #1 - Dec 19th, 2007, 1:05am
 
see: http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Exhibition;action=display;num=1196885810

this starts with an OPML file, and futher parses the contents
Re: Recursive XML Read & multiple XML file loa
Reply #2 - Dec 19th, 2007, 1:05pm
 
hello ajstarks,
I read further for OPML.

you suggest to build a big opml file (considered as a meta-XMLFile for this case)
and
to parse it.

it means that I'd have a big opml that would include the content of my big number of xml files.

is it correct ??
did I understand ??

without opml, how could I parse a lot of XML files ??
I mean: how can I code a script that parse succesively and interactively one xml file, another..?
environmentXML may help me ... I'll try again
Page Index Toggle Pages: 1