Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Can XML schema prevent additional unspecified elements? >Thread Next - Re: Can XML schema prevent additional unspecified elements? Re: Can XML schema prevent additional unspecified elements?To: NULL Date: 7/7/2008 1:13:00 PM J.A. wrote: > I have a schema that I need to use it to validate incoming XML files. > These files must comply explicitly with the schema. In other words, no > elements should be allowed except those specified in the schema. > > However, I just received an XML file that contains an additional > element, and this file validated successfully against the schema. > > This is a problem. Is there a way to modify the schema to prevent such > a file from validating successfully? Don't use xs:any then, otherwise I don't understand why you would see the behaviour you describe. Post the relevant parts of the schema and XML if you need more help. And also tell us which validating parser you are using. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
