Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Unqualified elment - but still have prefix at the root

From: "Simon Cox" <simon.cox@---.--.------.-->
To: "'Avihaimar'" <avihaimar@-----.--->, <xmlschema-dev@--.--->
Date: 8/25/2009 1:22:00 PM
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@j... 
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@w... [mailto:xmlschema-dev-request@w...] On
Behalf Of Avihaimar
Sent: Tuesday, 25 August 2009 14:49
To: xmlschema-dev@w...
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.





transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent