in reply to How to use XML::Parser
Thanks Graf, your algo worked like magic. But there is one issue. Some of the tags may have a null value.
In that case, hash key is not getting assigned.
EG:<root> <tag1></tag1> <tag2>My Tag2</tag2> <tag3>My Tag3</tag3> </root>
So for the above case, hash data structure should be:
my %my_hash = ( tag1 => undef, tag2 => 'My Tag2', tag3 => 'My Tag3', );
|
|---|