finde element i xml fil med X-Path
Hvordan findet jeg navnet på et element, som indeholder noget bestemt med xpath?Eksempelvis, hvis input er "Bob Dylan" er output USA, og hvis input er "Bonnie Tyler" er output UK
-----------
xml version="1.0" encoding="ISO-8859-1"?>
<catalog>
<cd country="USA">
<title>Empire Burlesque</title>
<artist>Bob Dylan</artist>
<price>10.90</price>
</cd>
<cd country="UK">
<title>Hide your heart</title>
<artist>Bonnie Tyler</artist>
<price>10.0</price>
</cd>
<cd country="USA">
<title>Greatest Hits</title>
<artist>Dolly Parton</artist>
<price>9.90</price>
</cd>
</catalog>
------
