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
|