I want to process following xml Using xpath query
<?xml version="1.0" encoding="UTF-8"?>
<UDSObjectList>
<UDSObject>
<Handle>chg:400106</Handle>
<Attributes>
<Attribute DataType="2002">
<AttrName>chg_ref_num</AttrName>
<AttrValue>123</AttrValue>
</Attribute>
<Attribute DataType="2002">
<AttrName>requestor.combo_name</AttrName>
<AttrValue>ServiceDesk, Administrator </AttrValue>
</Attribute>
<Attribute DataType="2005">
<AttrName>status</AttrName>
<AttrValue>AA</AttrValue>
</Attribute>
<Attribute DataType="2005">
<AttrName>priority</AttrName>
<AttrValue>3</AttrValue>
</Attribute>
<Attribute DataType="2002">
<AttrName>log_agent.combo_name</AttrName>
<AttrValue>ServiceDesk, Administrator </AttrValue>
</Attribute>
<Attribute DataType="2002">
<AttrName>assignee.combo_name</AttrName>
<AttrValue>Smith</AttrValue>
</Attribute>
</Attributes>
</UDSObject>
</UDSObjectList>
I want to get the AttrValue of AttrName='chg_ref_num' using xpath query what will be the exact query.
I am trying using
"//UDSObject/Attributes/Attribute/AttrValue[AttrName=chg_ref_num]/text()"
but not getting the AttrValue.