OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

legalxml-enotary message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [Fwd: RE: Validation errors on xsd:anyType]


FYI

Arshad

-------- Original Message --------
Subject: RE: Validation errors on xsd:anyType
Date: Tue, 9 Dec 2008 22:53:22 -0000
From: Michael Kay <mike@saxonica.com>
To: 'Arshad Noor' <arshad.noor@strongauth.com>,	<xmlschema-dev@w3.org>
References: <493EEDD0.2010503@strongauth.com>


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@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of Arshad Noor
> Sent: 09 December 2008 22:15
> To: xmlschema-dev@w3.org
> 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.
> 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]