I am writing my first dreamweaver extension. My extension needs to save data on the user's local file system. I know I can use DWfile.read() and DWfile.write() as described in chapter 2 of the Dreamweaver API reference. I'm thinking about storing the data using XML format. What is the easiest way to read and parse the XML data from the file? What is the easiest way to write the XML data to the file?
If you recommend a format other than XML, I'm open to suggestions. The data is just some configuration information for the extension which needs to be persistent.
The data will be uploaded to the server and a PHP program will read the data and use it. I've already implemented it using JSON. I had to install a JSON stringifer and a JSON parser in a subfolder of configuration/shared/common/scripts. It's working well.