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 › Saving an XML file
Page Index Toggle Pages: 1
Saving an XML file (Read 754 times)
Saving an XML file
Feb 11th, 2007, 5:26pm
 
Hello (again),
In my particle-based game, I want it to be able to make an XML file using proXML with data from two (there may be more later) arrays. I'm using SpringGUI for the GUI, with this code:

void handleEvent(String[] parameters)
{
(lots of other stuff)
 if(parameters[1] == "save_filename_textarea" && parameters[2] == "returnPressed")
 {
   filename = parameters[3];    
   xmlEvent(new XMLElement("game"));
 }
}

I get an InvocationTargetException (no line numbers or the "at ..." lines that errors usually have) when  trying to save it, which seems to be caused by the xmlEvent() line. I don't know what an InvocationTargetException is, since the only type of programming I've done before is PHP...
Page Index Toggle Pages: 1