I am creating an initialization file for my upcoming plugin. This file will allow the user to specify a path to a keyfile (currently by calling FileChooser), and may copy the data from the keyfile over - I haven’t decided yet.
Anyway, the initialization file is XML. I was planning on using an element for the path to the keyfile. For whatever reason, when I create a local XmlElement, store the path as an attribute, and then read out this attribute, the path can be read as a properly formatted String. However, if I try to use an element, via setText() and getAllSubText(), the path shows up as blank. Any idea what is going on here?
Also, I had planned on using writeToFile() once I have added the path to the original XmlElement that I derived from my XML initialization file. There is an argument for which DTD to use. My XML file is pretty simple, and not based on any schema, so what should I put in there? Can I leave this blank, or just put in some dummy schema? If not, what should I do?