1

I need to extract attribute name when field name is given. Suppose if I have field name Testing, then I need to extract attribute value for name corresponding to that field. In this case attribute value will be "SN_Name"

<RequirementFieldList>
  <field name="SN_Name">Testing</field>
  <field name="Email1">Test1_User</field>
  <field name="Email2">na</field>
  <field name="Email3">na</field>
  <field name="Email4">na</field>
</RequirementFieldList>

1 Answer 1

1

This would give the value of the name attribute if the value of field attribute is "Testing"

.//field[contains(.,"Testing")]/@name
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.