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 ;)