XPath queries on imported HTML doesn't work?
Posted: Sun Jan 23, 2005 4:53 pm
Hi there,
On a newly installed oxygen XML 5.1 on a PowerBook I try the following:
1) Import some HTML: "File -> Import HTML...", enter "http://www.google.com" and select "XHTML 1.0 Transitional". This will load the Google homepage and transform it to XHTML. The resulting document is a well-formed XHTML document. (But it does not quite validate - it complains about some attributes, but never mind...)
2) Using the XPath 1.0 text box on the top right of the editor window, try to find some portion of the document.
My problem is, no matter what expression I search with, the result is always a popup reporting that "The XPath query returned no results". Even if I search for elements that obviously are in the document, such as "//html", "//body", "//table", etc.
My question is, why don't the XPath queries find anything?
Regards,
panter
On a newly installed oxygen XML 5.1 on a PowerBook I try the following:
1) Import some HTML: "File -> Import HTML...", enter "http://www.google.com" and select "XHTML 1.0 Transitional". This will load the Google homepage and transform it to XHTML. The resulting document is a well-formed XHTML document. (But it does not quite validate - it complains about some attributes, but never mind...)
2) Using the XPath 1.0 text box on the top right of the editor window, try to find some portion of the document.
My problem is, no matter what expression I search with, the result is always a popup reporting that "The XPath query returned no results". Even if I search for elements that obviously are in the document, such as "//html", "//body", "//table", etc.
My question is, why don't the XPath queries find anything?
Regards,
panter