B
bwilde
Hello,
I am trying to use Java's XML capabilities to write a new XML file.
All of the examples that I have seen either use the DOM to import an
existing XML file, or ignore a DOM and create an XML file by simply
writing statements line by line.
My XML file is going to be pretty complex with a fair amount of
children under each node. I would like to keep track of it as a DOM,
which should make it easy to append children, then simply export it at
the end. Is there a way to do this? I still haven't been able to
simply create a new, blank document and assing it a root node. I
imagine that once I have a document with a root node, everything else
would follow pretty easily.
Thanks,
Ben
I am trying to use Java's XML capabilities to write a new XML file.
All of the examples that I have seen either use the DOM to import an
existing XML file, or ignore a DOM and create an XML file by simply
writing statements line by line.
My XML file is going to be pretty complex with a fair amount of
children under each node. I would like to keep track of it as a DOM,
which should make it easy to append children, then simply export it at
the end. Is there a way to do this? I still haven't been able to
simply create a new, blank document and assing it a root node. I
imagine that once I have a document with a root node, everything else
would follow pretty easily.
Thanks,
Ben