[jdom-interest] Builder.build() write/append/create

Jason Hunter jhunter at acm.org
Mon Jul 31 13:43:30 PDT 2000

Jon Baer wrote:
>  I think there should be a way
> (inside of JDOM) to possibly deal with XML file creation (much 
> like what File already does).  

JDOM writes to an output stream.  If you want that to be a file, just
create the file and give JDOM the output stream.  If you want to change
a file, just read it in, manipulate it, then overwrite (hopefully saving
the previous as a backup in case of error).  Is that not sufficient?


More information about the jdom-interest mailing list