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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?