Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: What may be the problem in my code?

by monkey_boy (Curate)
on Jan 06, 2006 at 14:40 UTC ( #521485=note: print w/ replies, xml ) Need Help??


in reply to What may be the problem in my code?

it is taking "a" as your "root" node, try adding a fake "root" tag, e.g.

<root><a b="1" c="1"><b c="1"/></a></root>

UPDATE:
or add this option:
my $res = XML::Simple->new(KeepRoot => 1);


This is not a Signature...


Comment on Re: What may be the problem in my code?
Select or Download Code
Re^2: What may be the problem in my code?
by gube (Parson) on Jan 06, 2006 at 15:17 UTC
    Thanks ;)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2014-07-11 03:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (218 votes), past polls