Re: XPath namespace nodes

On Fri, 13 Sep 2002, Ray Whitmer wrote:

> For this reason, it is expected that implementations will create
> namespace nodes in response to a query.  The DOM XPath API makes it
> clear, I think, that these are identified created during query
> evaluation from the namespace information available in the tree and then
> just forgotten until next time they are requested, when they are
> recreated.  If an application were to hold on to the namespace returned
> from one of the previous queries and then later to remove the element
> from a scope which declared the namespace, the namespace node does not
> mutate, not even to null-out it's parent.

So it means its applications responsibility to invalidate or remove the
namespace node it was haging on when the element which declared is
removed. right?

-vivek.




>
> Ray Whitmer
> rayw@netscape.com
>
>
>

--
Vivek Pandey
XML & Webservices
Sun Microsystems, Inc.

Received on Friday, 13 September 2002 17:23:54 UTC