Re: Error when attempting to use cloneNode - Can't locate object method "cloneNode" via package "XML::DOM::NodeList"
by Bjoern Hoehrmann other posts by this author
Jul 25 2007 11:40AM messages near this date
view in the new Beta List Site
Error when attempting to use cloneNode - Can't locate object method "cloneNode" via package "XML::DOM::NodeList"
|
Re: Error when attempting to use cloneNode - Can't locate object method "cloneNode" via package "XML::DOM::NodeList"
& XSLT * John Krewson wrote:
> I am getting the following error when attempting to use cloneNode, in order
> to clone a node and then paste this node into a target file:
> Can't locate object method "cloneNode" via package "XML::DOM::NodeList"
If you have XML::LibXML I don't think there is any reason to use
XML::DOM. As for your problem, getElementsByTagName returns a node
list (zero or more nodes); you are trying a method for a single
node on a list of nodes, you have to clone the nodes one by one.
Not that I am sure why you are trying to clone them in the first
place.
--
Björn Höhrmann · mailto:bjoern@[...].de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
John Krewson
Bjoern Hoehrmann
John Krewson
Richard E. Rathmann
John Krewson
James Woodworth
John Krewson
|