in reply to Re: Basic parsing XML perl - using FOREACH
in thread Basic parsing XML perl - using FOREACH

Thank you, I have another question though

what if

<employee="risc_30"> <name>Pradeep</name> <age>23</age> <sex>M</sex> <department>Coder</department> </employee> <employee="risc_31"> <name>Pradeep</name> <age>22</age> <sex>M</sex> <department>HR</department> </employee>

how does the foreach loop work then

Replies are listed 'Best First'.
Re^3: Basic parsing XML perl - using FOREACH
by 1nickt (Canon) on Dec 30, 2015 at 07:30 UTC

    That's not valid XML, so the parser will bork.


    The way forward always starts with a minimal test.