Re: [xml] Undefined character entities and libxml

On Sat, Dec 17, 2005 at 03:15:05PM -0500, Jon Smirl wrote:
Something is not quite right in the ruby XPath wrapper.

I have this XHTML with some <div> in the document.
<html xmlns=""; xml:lang="en">

XPath //div should return the <div> but it doesn't find anything.

  No. XPath beginner mistake #1 . default namespace are a namespace
the match is not syntactic it's based on the namespace property too

  This has probably be raised dozens of time on this list and thousands
on common archives and FAQs.


Daniel Veillard      | Red Hat
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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