Because XSD indicates
<any processContents="strict" />
in the aspect content model, your XML is not valid due to processContents="strict" , which requires the XML processor to have an XSD definition , in this case security and should be able to validate it .
If you change it to
<any processContents="lax" />
your XML will be valid, and if you come to the definition of security in your XSD, the definition will be used during validation. (If a definition cannot be found, your document will still be considered valid.) This requires that the content be valid only if the XML processor can find its definition .
If you change it to
<any processContents="skip" />
your XML will be valid, and the XML processor will not try to validate the contents of the child content in aspect (except that it must be a separate element to limit the sequence ).
Notes:
- The default value for
processContents is strict . - See section 3.10.2 Representation of XML Component Wildcards in the XSD Recommendation for more information.
- If you're interested in how to bring another XSD to your XSD wizard, see xsd: import vs xsd: include .
kjhughes
source share