How to print the label by providing the value?
This is the XML I have
<node id="mid556">
<node id="id445">
<label key="">John</label>
<link type="html">
<value>A</value>
</link>
</node>
<node id="id446">
<label key="">Charles</label>
<link type="html">
<value>B</value>
</link>
</node>
<node id="id447">
<label key="">Smith</label>
<link type="html">
<value>D</value>
</link>
</node>
</node>
I need to print all node/labels if any values inside the node mathches. for example
if value is A than print John, Charles Smith
if value is B than print John, Charles Smith
if value is C than print John, Charles Smith
|