Mmh. Kann man denn mit XPath überhaupt XHTML-Dokumente parsen?
Ich habe nämlich festgestellt, dass das Parsing funktioniert, wenn ich Doctype sowie den Namespace weglasse (leider brauche ich beide in meinen Dokumenten):
XPath-parsebares "XHTML"-Dokument: ***************************
<?xml version="1.0" encoding="ISO-8859-1"?>
<html>
<head></head>
<body>
<div>
<p id="USA">
Empire Burlesque<br/>
Bob Dylan<br/>
10.90
</p>
<p id="UK">
Hide your heart<br/>
Bonnie Tyler<br/>
10.0
</p>
<p id="GB">
Greatest Hits<br/>
Dolly Parton<br/>
9.90
</p>
</div>
</body>
</html>