Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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...


Comment on Re: What may be the problem in my code?
Select or Download Code
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 lurking in the Monastery: (12)
As of 2015-07-29 14:42 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 (263 votes), past polls