FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 963 : Any chance of being able to create and save XMLElements?
Last modified: 2010-06-05 02:22
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
ASSIGNED
Resolution:
-
Pr
i
ority:
P3
Severity:
enhancement
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
polymonkey
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2008-10-18 23:53
I use processing to write out a lot of XML. At the moment the only way to
do that is with proXML (good but can't write element content). On the flip
side for reading XML the processing library is absolutly fantastic. This
causes a lot of pain, usually involving making xml with one sketch and
reading in another.
However now that XMLElement is a perminate addition to core, it causes
namespace problems with proXML. So I've started doing a lot of this
import proxml.*;
processing.xml.XMLElement input = new
processing.xml.XMLElement(this,"setup.xml");
// do a bunch of stuff
proxml.XMLElement output = new proxml.XMLElement( "root" ) ;
// do more stuff
XMLInOut xmlInOut = new XMLInOut(this);
xmlInOut.saveElement(output, "myCrazyFileName.xml");
It works but it isn't pretty. So I'm throwing the request on the mercy of
the court. Any chance of being able make and save XML?
MattD
Additional Comment
#1 From polymonkey 2008-10-18 23:55
Sorry, I was trying to turn this into a request but it looks like it's a
bug. Appologies, frequently I'm a moron :-)
M
Additional Comment
#2 From fry 2008-10-19 04:22
Have you looked for the developer's reference for XML?
http://dev.processing.org/reference/core/
There are methods for writing, but I haven't had a chance to go through
them and make sure they fit our API style so we don't publish them as part
of the rest of the API.
This bug is now being tracked
here
.