This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]