Suppose I have the XML file
<?xml version="1.0" ?>
<Tasks>
    <Task>
         <id>1234</id>
         <name>abc</name>
    </Task>
    <Task>
         <id>5678</id>
         <name>xyz</name>
    </Task>
<Tasks>
How can I extract the value of id using the value of name? For example I know the name is abc. How can i extract the value 1234 from the above file? 
 
    