Using JDOM . . .

Hi all,

I want to append an element to an xml file using
jdom. I was wondering how would I go about dong that?

because the file is rather large, I wish to just add the
new element onto the existing file with out rewriting
the entire file.

Is there a way to complish this??
I guess I can manually modify the xml file…
but I’m hoping for a way to do this within
the JDOM api.

Thanks in advance,
Much appricated.

While you might happen to find a JDOM user here, I’d suggest that its not exactly a prime game programming technology and you migth have more luck in forums devoted to enterprise apps.

From what I remember, JDOM relies on pulling the document into the DOM model before allowing processing. I reakon you need to be looking at SAX to do what you want, might be easier just to write a little bespoke tool do just add an element on the end.

Kev