• Post Reply Bookmark Topic Watch Topic
  • New Topic

Append New content in previous XML generated using StreamResult

 
Azrael Noor
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!