Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Validation errors on xsd:anyType

From: "Michael Kay" <mike@--------.--->
To: "'Arshad Noor'" <arshad.noor@----------.--->, <xmlschema-dev@--.--->
Date: 12/9/2008 10:53:00 PM

xs:anyType allows any content in any namespace.

The children are subjected to lax validation, which means that an error
could occur if there is an element declaration for <comment> and your
element doesn't match it; but if there is no element declaration, there
should be no error.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: xmlschema-dev-request@w... 
> [mailto:xmlschema-dev-request@w...] On Behalf Of Arshad Noor
> Sent: 09 December 2008 22:15
> To: xmlschema-dev@w...
> Subject: Validation errors on xsd:anyType
> 
> 
> Hi,
> 
> I have an element, <enml:SignerSignature> defined as <xsd:anyType>.
> 
> When I create an instance of the document, there is a 
> sub-element within it that is not qualified by any namespace:
> 
> 	<enml:SignerSignature>
> 		<comment> ......</comment>
> 		<ds:KeyInfo>....<ds:KeyInfo>
> 	</enml:SignerSignature>
> 
> NetBeans 6.x does not complain about this; but apparently 
> Microsoft's Visual Studio Express 2008 and the .NET 3.5 
> framework do about the <comment> element.
> 
> Who is right on this?  TIA.
> 
> Arshad Noor
> StrongAuth, Inc.
> 


From mohamed.zergaoui@x... Thu Dec 11 08:44:26 2008
Received: from farnswort


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