Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Bes XPath query? >Thread Next - Re: Bes XPath query? Re: Bes XPath query?To: NULL Date: 5/8/2009 9:12:00 AM On May 8, 8:52=A0am, Martin Honnen <mahotr...@yahoo.de> wrote: > So that is XHTML and that means, if the document is parsed by an XML > parser, that you need to bind a prefix to the namespace URI and use that > prefix in your XPath expressions. Could you please provide an example of what such an expression would look like? > > PS: Note that other XPath searches work in this document, for example: > > "//table/tr[@class =3D 'rs0']/th/span[@class =3D 's1']" > > That is rather odd, with the namespace declaration being present on the > root element. How do you parse the document, which XPath API do you use? > Is that XPath over HTML, as some browsers like Mozilla or Opera provide? I am using NSXML under Cocoa/Objective-C (Mac OS X). Once again, thank you for your help. I didn't even know XPath existed until a few days ago. :( | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
