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

RE: MSXML3: Getting the new node object after .replace

Subject: RE: MSXML3: Getting the new node object after .replaceChild
From: "Joel P Thornton" <joelt@xxxxxxxxxxxxx>
Date: Fri, 13 Apr 2001 13:43:56 -0700
RE:  MSXML3: Getting the new node object after .replace
Thanks so much Chris :)

| nodeParent.replaceChild xmlDocNew.documentElement, nodeToReplace
| you are inserting the document element under the parent not a new node

I changed my code from this:

	nodeParent.replaceChild xmlDocNew.documentElement, nodeToReplace

to this:

	Set nodeDesired = xmlDocNew.documentElement.cloneNode(True)
	nodeParent.replaceChild nodeDesired, nodeToReplace

.. and that got it working as desired, so I can then use nodeDesired, and
have its parent be nodeParent.  :)

joel


 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.