Re: DOM 3 XPath: default namespace nodes?

On Fri, 13 Sep 2002, Perry A. Caro wrote:

[deleted]

> 	prefix:		"xmlns"
> }
>
> Result[2] = XPathNamespace { // Note: omitted attributes are null or false
> 	nodeName:	"" // i.e., empty string, NOT null
> 	nodeType:	13
> 	ownerDocument:	(Document node)
> 	namespaceURI:	"default/"
> 	prefix:		"" // i.e., empty string, NOT null
> }
>
> =========================
>
> Things I'm not completely sure about:
>

[deleted]

>
> * For xmlns="default/", should the nodeName and prefix be empty string, or
> null?  I'm assuming empty, because I can find no reference in any DOM Core
> spec that permits nodeName to be null, and I'm told that anything not
> expressly permitted in the spec is forbidden.
>

as per the DOM L3 core spec the prefix for default namespace should be
null. See
http://www.w3.org/TR/2002/WD-DOM-Level-3-Core-20020409/core.html#ID-1950641247.

-vivek.


> Perry A. Caro
> Adobe Systems Incorporated
>
>

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

Received on Friday, 13 September 2002 19:58:04 UTC