ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
how to add a node in XML::DOM
by John Quigley other posts by this author
Jan 25 2001 6:42PM messages near this date
view in the new Beta List Site
RE: XML::Parser::PerlSAX -- characters() callback? | Re: how to add a node in XML::DOM
Greetings all,

I'm having trouble adding a node to a document tree. The situation is
briefly the following:

I've got this one DOM object/tree that has data in it.
I've got this other DOM object/tree that contains barebones xml and 
some junk data...it's basically a template for the type of xml I'm working
with.

I need to add nodes to the DOM that has good data in it. I'm trying to
achieve this by cloning a "junk" node from the template xml DOM and then
adding that node to the DOM with good data in it.

Methods attempted but not successful: setOwnerDocument, setParentNode, and
appendChild.

Any thoughts on a clean way to do this? Any documentation I can be pointed
to?

Thanks in advance,

        -John Quigley


_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
http://listserv.ActiveState.com/mailman/listinfo/perl-xml
Thread:
John Quigley
Romeo Juncu

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved