Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: What may be the problem in my code?

by monkey_boy (Priest)
on Jan 06, 2006 at 14:40 UTC ( [id://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...

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://521485]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-03-29 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found