Use XMLStarlet to parse XML in your the Linux terminal

Learning to parse XML is often considered a complex venture, but it doesn[he]#039[/he]t have to be. XML is highly and strictly structured, so it[he]#039[/he]s relatively predictable. There are also lots of tools out there to help make the job manageable.

Source: LXer – Use XMLStarlet to parse XML in your the Linux terminal