I have the following structure inside an XML file:
<TestCase name="A" priority="">
<Test name="A1" result="pass" />
<Test name="A2" result="pass"/>
</TestCase>
<TestCase name="B" priority="">
<Test name="B1" result="pass" />
<Test name="B2" result="pass"/>
</TestCase>
Using shell script, how do I read and navigate the tags and their subtags, in order to print the result:
A
A1 - pass
A2 - pass
B
B1 - pass
B2 - pass