Re: [xml] xmllint -shell and namespaces



On Fri, Jul 13, 2001 at 09:51:07PM -0500, Weiqi Gao wrote:
Hi,

With the latest libxml2-2.4.0, if I run 'xmllint -shell' on a file that
contains

  <foo:bar xmlns:foo="http://foo.com";>Hello, World</foo:bar>

I can't seem to be able to navigate to the 'foo:bar' node with either
the 'cd foo:bar' (Undefined namespace prefix) or the 'cd bar' command
(bar is a 0 Node Set).  What's the proper way to get into that node?

  Hum, the shell is somewhat ancient code, though I started using
it for regression tests for 2.4.0 . It needs some cleanup, and in this
case the XPath is called without giving the list of in-scope namespaces
so this doesn't work. Should not be too had to fix. I should add an
help command too listing what commands are available.
  Ideally I would like to add interfaces for a lot of tree manipulations
so it could be used for doing serious regression tests over the interfaces
provided in tree.h , patches welcome :-)

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
Sep 17-18 2001 Brussels Red Hat TechWorld http://www.redhat-techworld.com




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