Is it possible to create an XML object from scratch? The only way to create an XML object I can find in the documentation is a call to loadXML(fileName):
XML xml = loadXML("file.xml");
The documentation seems to imply that you can create a new XML object by calling loadXML without a filename - loadXML() - but when I try this I get an error message that the method is not applicable for arguments ().
The simple workaround is to create a "template" XML file, load this, and then change names and add children, content, and attributes as required. Wondering if I'm missing something here.
Oh, I'm trying to write a .kml file (basically just an XML schema) to get some sim data out of Processing for display in Google Earth.