http://www.perlmonks.org?node_id=948047


in reply to Is there any XML reader like this?

I usually use XML::XSH2 for XML manipualtion:
open 947833.xml ; for /servers/* echo name() ; # list stations for /servers/station18/ip echo text(); # list ip's for statio +n18 $station = 'station17' ; for /servers/*[name()=$station]/ip echo text(); # list ip's for a stat +ion given by a string var