In this below example, say file.xml
There are values inside tags return code=" " I need the values inside <Port name="write_qwe">
ONLY.
<Main display="NORMAL">
<Port name="read_abc" exe="NO">
<input>
<struct file="C:\temp" sign="id1"/>
</input>
<output>
<return code="33" shortmsg="Implementation not found for commande."/>
</output>
</Port>
<Port name="write_qwe" exe="NO">
<input>
<struct file="C:\temp" id="id1"/>
</input>
<output>
<return code="1" shortmsg="NOTEXECUTED" longmsg="Not execute due to previous error"/>
</output>
</Port>
<Port name="read_abc" exe="NO">
<input>
<struct file="C:\temp" sign="id2"/>
</input>
<output>
<return code="66" shortmsg="Implementation"/>
</output>
</Port>
<Port name="write_qwe" exe="NO">
<input>
<struct file="C:\temp" id="id2"/>
</input>
<output>
<return code="0" shortmsg="NOTEXECUTED" />
</output>
</Port>
</Main>
I need to get the value of the
<return code" ">
which is inside
<port name="write_*">
and inside
<output>
.
In this example I need to get values "1" and "0" .