Thanks alot for your answer. I actually didn't know that one could write XML that easy (thanks for the hint, that sure will come handy at some point!), but it hasn't really helped me, since I need a little more advanced writing tools (like add childs or something to an existing xml file etc.), that the proXML library offers.
BUT, I found the solution how to write to multiple xml files with the proXML library.
I found it on this code
http://ericbrotto.com/EricBrotto/data/source/:
A seperate class (here: info) has to be introduced so the multiple xmlEvent() calls don't screw each other up.
The important parts are here:
import proxml.*;
XMLInOut xml = null; // Two separate xml objects. One for the photos, one for info on the photos
XMLInOut infoXml = null;
//....
Info info = new Info(); // A separate class is needed to run a second xml loadEvent/saveElement method.
void setup() {
//....
xml = new XMLInOut(this); // The two xml objects instantiated
infoXml = new XMLInOut(this,info);
}
void draw() {
}
void xmlEvent(proxml.XMLElement _x) {
parseXML(_x);
}
public class Info {
void xmlEvent(proxml.XMLElement _x) {
parseXML(_x);
}