[xml] Namespace Query Issue


When use xmlXPathEval with the query "/root/WEB:Site" on the following xml

<?xml version=\"1.0\"?>
<root xmlns:WEB='http://www.winehq.org'>
    <WEB:Site version=\"1.0\" />

I get the following error
XPath error : Undefined namespace prefix
xmlXPathEval: evaluation failed

Using the same xml and query in MSXML it works.

Can someone explain what I am doing wrong?

Best Regards
Alistair Leslie-Hughes

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]