W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2007

Re: Empty namespace

From: Boris Kolpackov <boris@codesynthesis.com>
Date: Fri, 31 Aug 2007 08:32:38 +0200
To: Rich Adili <Rich.Adili@xata.com>
Cc: xmlschema-dev@w3.org
Message-ID: <20070831063238.GA19756@karelia>

Hi Rich,

Rich Adili <Rich.Adili@xata.com> writes:

> <xs:schema xmlns=""...
> Is this legal? What are the implications of using an empty string?

Yes, this is legal. This construct "unbinds" the default namespace-
prefix association. It does not make much sense in the root element
of an XML document thought. But something like this makes perfect

<foo xmlns="foons"> <!-- now all unqualified elements are in foons -->
  <bar xmlns="">
    <baz/>  <!-- baz is not in a namespace -->


Boris Kolpackov
Code Synthesis Tools CC
Open-Source, Cross-Platform C++ XML Data Binding
Received on Friday, 31 August 2007 06:38:03 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:13 UTC