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 › writing xml files with proXML
Page Index Toggle Pages: 1
writing xml files with proXML (Read 498 times)
writing xml files with proXML
Mar 12th, 2009, 10:17am
 
hi,
I downloaded proXML, but ran into some problems writing files to the disk. I was getting this error with some of my sketches:
You cannot write to this destination. Make sure destionation is a valid path. Working inside the processing environment (MacOSX) I got rid of this by deleting the data folder and letting the sketch create a new data folder. from within the eclipse environment this did not work and I keep getting the same error. "saveStrings" otoh works allright. Not sure what to do. Could I use saveStrings instead of saveElement?
Thanks for your help,
marius.
Re: writing xml files with proXML
Reply #1 - Mar 12th, 2009, 12:37pm
 
hmm, I looked into the source code of XMLInOut.java. It seems that the "if (!pApplet.online)" statement returns false and therefor XMLInOut does not try to create a new file and thus throws an error.
If the file exists, then I also can write to it, so I guess I can live with that...
marius.
Page Index Toggle Pages: 1