Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Error : can't locate object method "createElement" via package XML::DOM::ELEMENT

by NetWallah (Canon)
on Sep 29, 2016 at 05:54 UTC ( [id://1172889]=note: print w/replies, xml ) Need Help??


in reply to Error : can't locate object method "createElement" via package XML::DOM::ELEMENT

Try using $doc, instead of $root.

createElement is a method of XML::DOM::Document, not of 'XML::DOM::Element', which is what $root is.

        ...it is unhealthy to remain near things that are in the process of blowing up.     man page for WARP, by Larry Wall

  • Comment on Re: Error : can't locate object method "createElement" via package XML::DOM::ELEMENT

Replies are listed 'Best First'.
Re^2: Error : can't locate object method "createElement" via package XML::DOM::ELEMENT
by ankit.tayal560 (Beadle) on Sep 29, 2016 at 08:12 UTC

    ohh eya right! thanks a lot . worked (y)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1172889]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 15:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found