Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Validation errors on xsd:anyType [Thread Next] RE: Validation errors on xsd:anyTypeTo: "'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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
