Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: perl xml format question

by tobyink (Abbot)
on Jan 29, 2013 at 11:20 UTC ( #1015854=note: print w/ replies, xml ) Need Help??


in reply to Re^2: perl xml format question
in thread perl xml format question

Are you using an oldish version of XML::LibXML perhaps?

The ability to handle an element's attributes like a hash was only added in 1.91 IIRC.

You can use setAttribute in older versions.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name


Comment on Re^3: perl xml format question
Download Code
Replies are listed 'Best First'.
Re^4: perl xml format question
by Anonymous Monk on Jan 29, 2013 at 16:51 UTC

    Thanks, i was using an older version since ppm was only able to find/install the older version (XML::LibXML 1.7). After using setAttribute i was able to get the desired output. My database error is also gone. Thank you Tobyink

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2015-07-08 03:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls