Re: [xml] Clarification on XML Schema error



* Boris Kolpackov wrote:
Rob Laveaux <rob laveaux pluggers nl> writes:

<xs:schema xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
xmlns="" id="NewDataSet" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
 ^^^^^^^^

This is not necessary and is actually illegal since XML namespace
cannot be an empty string. I guess libxml gets confused by this
while the schema processor in Oxygen simply ignores the declaration.

The declaration above undeclares the default namespace, there is nothing
illegal about that. What you can't do in XML 1.0 is undeclaring a prefix
ala xmlns:example=''. If the xmlns="" is on the root element, and the
root element has a prefix, it makes no difference whether it is there or
not.
-- 
Björn Höhrmann · mailto:bjoern hoehrmann de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 



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