XML parsing through shell scritps

Hi,
Am new to scripting. :slight_smile:
Am trying to figure out whether can i use bash scripting to parse an xml file.
Parsing is not just pulling out information according to the pattern but its more of a generic parsing. I should identify the xml hierarchy and pull out information accordingly. It's not a basic parsing stuff. So what you tech guys suggest for this. Will the basic bash scripts be suffice or should i go for expat xml parser or perl parsing or whatever??

Pls suggest some tools and throw some light in this.
Any help is appreciated.
Thanks in advance.

It's not impossible with bash, but very bug-prone and uncomfortable.

Thanks dude!! can you suggest some tools which makes xml parsing simple and efficient???