I have difficulty to query the value of a data element value, when attribute xmlns="..." in it and it's parents element. The following example is part of a SOAP response, and I want to get the value of first name and last name of it by using XPATH /PartyInq_v2Response/PartyInq_v2Rs_Type/*[local-name()="person"]/firstName' . But it return nothing. It can return value if I removed all xmlns="..." from the xml before query. Does anybody know how to query first name from the example directly?
<PartyInq_v2Response xmlns="urn:Somewhere.Int" xmlns:q2="http://SomewhereOps.v20120719" xmlns:q10="http://SomewhereTypes.v20120719.GenericTypes">
<PartyInq_v2Rs_Type>
<q2:person>
<firstName xmlns="http://SomewhereTypes.v20120719.Types">somebody</firstName>
<lastName xmlns="http://SomewhereTypes.v20120719.Types">nobody</lastName>
</q2:person>
</PartyInq_v2Rs_Type>
</PartyInq_v2Response>
Thanks
Lu