File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Append New content in previous XML generated using StreamResult Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Append New content in previous XML generated using StreamResult" Watch "Append New content in previous XML generated using StreamResult" New topic
Author

Append New content in previous XML generated using StreamResult

Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
Generating XML Twice
But second time i want to append content to previous XML

How to do that?

present code is this:



If stream result could not be used what could else can be used? (My hand is paining while typing :banghead

Thank you to Answerres


Regards
Azrael Noor
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
Since an XML document can have only one root element, you can't simply append a new serialized DOM to an existing file and get a combined document.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Append New content in previous XML generated using StreamResult