Re: [xml] xmlSearchNsByHref

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Sat Nov 18 2000 - 14:47:04 EST


On Sat, Nov 18, 2000 at 06:22:37PM +0000, Bjorn Reese wrote:
>
> Daniel Veillard wrote:
>
> > The namespace of a node (if any) is node->ns, this is a pointer to
> > the namespace declaration (available from the nsDef list of the element
> > declaring it).
>
> Will node->ns contain the default namespace, if no other namespace is
> declared for that node?

 if there is a default namespace in effect, yes, it should.
In the case you sent there is no xmlns="xxx" in scope so you will
get <second>'s node->ns == NULL. Same for the reoot element.

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | libxml Gnome XML toolkit
Tel : +33 476 615 257  | 655, avenue de l'Europe | http://xmlsoft.org/
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Rpmfind search site
 http://www.w3.org/People/all#veillard%40w3.org  | http://rpmfind.net/
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Nov 18 2000 - 15:43:29 EST