- From: Simon Cox <simon.cox@jrc.ec.europa.eu>
- Date: Tue, 25 Aug 2009 15:20:29 +0200
- To: "'Avihaimar'" <avihaimar@yahoo.com>, <xmlschema-dev@w3.org>
The key point is that because your document uses elements from two namespaces, an instance document with no namespace prefixes at all is invalid. The 'no prefix' can only be used by one namespace, not both. -------------------------------------------------------- Simon Cox European Commission, Joint Research Centre, Institute for Environment and Sustainability, Spatial Data Infrastructures Unit, TP 262 Via E. Fermi, 2749, I-21027 Ispra (VA), Italy Tel: +39 0332 78 3652 Fax: +39 0332 78 6325 mailto:simon.cox@jrc.ec.europa.eu http://ies.jrc.ec.europa.eu/simon-cox SDI Unit: http://sdi.jrc.ec.europa.eu/ IES Institute: http://ies.jrc.ec.europa.eu/ JRC: http://www.jrc.ec.europa.eu/ -------------------------------------------------------- -----Original Message----- From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On Behalf Of Avihaimar Sent: Tuesday, 25 August 2009 14:49 To: xmlschema-dev@w3.org Subject: Re: Unqualified elment - but still have prefix at the root Last one - (Thank you!!!!!) I know - i can handle this XML with any prefix. Its depend on the declaration in the header (xlmns). But, XML without any prefix will failed in validation . I want to have the option to not have prefix at all and i dont know how can i do this either by chanigng the xsd or the instance. When i send example of XML to the cutomers i want to send them XML with no prefix and i didnt success to have one by chanigng the xsd or the instance. Avihaimar wrote: > > Hey, > > i have two schemas A,B. > B import A. > Both of them defined as unqualified element, but the xml that > generated from B has n1: as a prefix for the root elements. > Is there a way to have no prefix at all? > > Thank you > -- View this message in context: http://www.nabble.com/Unqualified-elment---but-still-have-prefix-at-the-root -tp25123070p25133549.html Sent from the w3.org - xmlschema-dev mailing list archive at Nabble.com.
Received on Tuesday, 25 August 2009 13:21:18 UTC