Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: XML Adding Node Problem.

by roboticus (Chancellor)
on Oct 23, 2012 at 21:12 UTC ( #1000527=note: print w/ replies, xml ) Need Help??


in reply to XML Adding Node Problem.

huchister:

It appears that the reason you're getting <ARRAY(0xeea3ac0)> in there is because you're handing an array of nodes to a function that expects to add a single node to the XML tree. Perhaps it might work if you add them one at a time--maybe like this:

$ob->add_node($rxml, 'vars', $_) for @$fields;

Caveat: I've never used XML::Bare, so I may have misdiagnosed or some such.

...roboticus

When your only tool is a hammer, all problems look like your thumb.


Comment on Re: XML Adding Node Problem.
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2016-02-14 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (471 votes), past polls