[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Appending a Document to another

Subject: RE: Appending a Document to another
From: Bernhard Keil <Bernhard.Keil@xxxxxx>
Date: Mon, 7 Feb 2000 10:48:49 +0100
RE: Appending a Document to another
you can insert add root of doc B 
as child of the root of doc A.

-----Original Message-----
From: Anders K [mailto:cyberspock@xxxxxxxxx]
Sent: Montag, 7. Februar 2000 10:30
To: 'Xsl-List (E-mail)
Subject: Appending a Document to another


Hi,

I wonder if there is anybody who can tell
me a simple way to add one or more XML-docs
to another Document ?

i.e. 


Document A = new DocumentImpl();
... filling A up with stuff ...

// now I need to add some docs.
DOMParser dp = new DOMParser();
db.parse(somefile);
Document B = db.getDocument();

i tried
fc = A.getfirstchild();
fc.appendChild(B);
but got an exception wrong doc

or do I have to traverse the 
Document B adding the nodes
one by one? (which seems to be so much fun ;-)

TIA
</anders>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.