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?To: NULL Date: 7/7/2008 7:55:00 AM "J.A." <jonathan_armstrong@r...> wrote in message news:f74585d8-c1c1-4f21-af3b-c3759a8b9589@k...... >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? That should be possible, can you show the schema and the file? Perhaps the element is in a different namespace and the schema allows that. -- Joe Fawcett (MVP - XML) http://joe.fawcett.name | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
