Re: [xml] xmllint and namespaces

On Thu, Oct 24, 2002 at 11:22:37AM +0200, Stefan Kost wrote:
Hi Daniel,

Thanks for your help, but I am not over with the issue. I prefered not to 
pollute my files and so I got rid of the namespace prefix (as I will not mix my 
xml-data with other). So

<giml:giml xmlns:giml="";>

has been changed to

<giml xmlns="";>

I keep the default namespace. No all of my xpath queries are broken.

  Read the XPath spec. the "giml" XPath expression will only select
nodes of name "giml" but without namespace. You need to keep the namespace
in the XPath query to match those node.
  Sorry I can't debug the code. I assume the problem comes from what
I just said.


Daniel Veillard      | Red Hat Network
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]