I need to extract values of elements: price and publisher, given the title of the book from this XML.
<book>
<title>Burning Tower</title>
<author>Larry Niven</author>
<author>Jerry Pournelle</author>
<publisher>Pocket</publisher>
<isbn>0743416910</isbn>
<price>5.99</price>
</book>
How this can be done?
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.
<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>