Can an XML schema prevent additional (unspecified) elements?

5 views
Skip to first unread message

J.A.

unread,
Jul 7, 2008, 1:47:28 AM7/7/08
to XML Schema
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?
Reply all
Reply to author
Forward
0 new messages