Hallo,
ich möchte aus folgender xml mit xpath den Namen des attributes bei title herausfinden: (Ergebnis sollte: lang, country und village sein). Geht das? Ich verzweifle gerade....
Vielen Dank
Steffen
ich möchte aus folgender xml mit xpath den Namen des attributes bei title herausfinden: (Ergebnis sollte: lang, country und village sein). Geht das? Ich verzweifle gerade....
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<bookstore>
<book category="COOKING">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
<book category="CHILDREN">
<title country="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
<book category="WEB">
<title village="en">XQuery Kick Start</title>
<author>James McGovern</author>
<year>2003</year>
<price>49.99</price>
</book>
</bookstore>
Vielen Dank
Steffen