[XML-SIG] Proper way of generating a parentless Node object
Mike Olson
Mike.Olson@fourthought.com
18 Jun 2002 14:52:38 -0600
On Tue, 2002-06-18 at 14:55, Martin v. Loewis wrote:
> Mark Humphrey <msph@alyra.org> writes:
>
>
> I believe what you want to do is not possible with standard DOM
> API. So you need to revert to implementation-specific extensions. For
> 4DOM, you can use _4dom_setOwnerElement.
importNode will work as well.
nodeToAdd = document.importNode(nodeTobeImported,deep=1)
document.appendChild(nodeToAdd)
or similar
Mike
>
> Regards,
> Martin
>
>
>
> _______________________________________________
> XML-SIG maillist - XML-SIG@python.org
> http://mail.python.org/mailman/listinfo/xml-sig
--
Mike Olson Principal Consultant
mike.olson@fourthought.com +1 303 583 9900 x 102
Fourthought, Inc. http://Fourthought.com
4735 East Walnut St, http://4Suite.org
Boulder, CO 80301-2537, USA
XML strategy, XML tools, knowledge management