Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: What may be the problem in my code?

by monkey_boy (Priest)
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...

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
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 browsing the Monastery: (7)
As of 2016-08-31 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (437 votes). Check out past polls.