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 proXML files to a different directory
Page Index Toggle Pages: 1
saving proXML files to a different directory (Read 379 times)
saving proXML files to a different directory
Jan 18th, 2009, 8:17pm
 
Hi

does anyone know how to save the xml-file with proXML to a different path than the data folder? if I provide the saveElement() function an absolute path, like
Code:
/Users/maf/Arbeiten/code/Px1m0dBridge/data/test.xml 


it saves it in
Code:
/Users/maf/Arbeiten/code/Px1m0dBridge/data/Users/maf/Arbeiten/code/Px1m0dBridge/data/test.xml  



one possibility would be to save it into the data folder anyway, and then move it to the target directory. but in order to make the code portable, i would need the absolute path to the data-folder.

any ideas?
Re: saving proXML files to a different directory
Reply #1 - Jan 19th, 2009, 10:28am
 
Try this

../test.xml

This should get you up one directory from data. using .. should let you move around the file system from the starting point of the data directory.
Re: saving proXML files to a different directory
Reply #2 - Jan 19th, 2009, 12:01pm
 
thank you very much! it works sweet.
Page Index Toggle Pages: 1