2
I have the following structure within 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 traverse the tags and their subtags, in order to print the result:
A
A1 - pass
A2 - pass
B
B1 - pass
B2 - pass
Which shell? bash? CMD? PS?
– carlosfigueira
The shell is bash.
– paulogirao