ProXML Questions
in
Contributed Library Questions
•
2 years ago
I hate having to open a new topic, but... - phi.lho, I got that code working... there was alot I wasn't showing you... essentially, I want a checkbox that sets a varible at either 1 or 2 on the setting of the checkbox... but as we know, "Programmers start at zero" - anyway, got it working, so its beside the point. I haven't actually coded the checkbox in yet, my Round 3 is XML testing, and Round 4 is GUI testing...
So - Round 3!
I think I have a pretty good handle on the idea, but I'm getting an error (what, bugs?!).
My code - you could perhaps suggest a better way, we'll see:
proxml.XMLElement docTitle = new proxml.XMLElement("docTitle");
docTitle.addAttribute("text", "Fringe Dry Run File");
XMLInOut.saveElement(docTitle,"/home/boris/Sketchbook/data/mbp_toc.xml");
And so on and so forth for each of the elements, surely theres a quicker, one line way to save the XML file, like we did with the JSoup HTML and the "toString()"...
By the way, the XML code for that should look like:
<docTitle><text>Fringe Dry Run File</text></docTitle>
I'm guessing that the above Processing code will not do that exactly?
Anyway, the error is - "Cannot make a static reference to the non-static method saveElement"
Thanks again for your help!
So - Round 3!
I think I have a pretty good handle on the idea, but I'm getting an error (what, bugs?!).
My code - you could perhaps suggest a better way, we'll see:
proxml.XMLElement docTitle = new proxml.XMLElement("docTitle");
docTitle.addAttribute("text", "Fringe Dry Run File");
XMLInOut.saveElement(docTitle,"/home/boris/Sketchbook/data/mbp_toc.xml");
And so on and so forth for each of the elements, surely theres a quicker, one line way to save the XML file, like we did with the JSoup HTML and the "toString()"...
By the way, the XML code for that should look like:
<docTitle><text>Fringe Dry Run File</text></docTitle>
I'm guessing that the above Processing code will not do that exactly?
Anyway, the error is - "Cannot make a static reference to the non-static method saveElement"
Thanks again for your help!
1