How to fetch attribute values of two different attributes example xml is pasted below Please help me out?????
<?xml version="1.0" encoding="iso-8859-1"?>
<EXPRESSION>
<OPERATOR VALUE="+">
<OPERATOR VALUE="-">
<OPERATOR VALUE="and">
<LOGIC>
<OPERATORERAND VALUE="A"></OPERATORERAND>
</LOGIC>
<LOGIC>
<OPERATORERAND VALUE="B"></OPERATORERAND>
</LOGIC>
</OPERATOR>
<OPERATOR VALUE="and">
<OPERATOR VALUE="negation">
<LOGIC>
<OPERATORERAND VALUE="C"></OPERATORERAND>
</LOGIC>
</OPERATOR>
<OPERATOR VALUE="xor">
<LOGIC>
<OPERATORERAND VALUE="D"></OPERATORERAND>
</LOGIC>
</OPERATOR>
</OPERATOR>
</OPERATOR>
<BOOLEAN>
<VALUE>true</VALUE>
</BOOLEAN>
</OPERATOR>
</EXPRESSION>
I want the output as
Operator=+
Operator=-
Operator=and
Operand=A
Operand=B
Operator=and
Operator=negation
Operand=C
Operator=XOR
Operand=C
Please help me out ?????