Invalid Particle Derivation by Restriction

Problem

When generating code from a schema you may get the error 'Invalid particle derivation by restriction'. This may be due to the use of an XSD that does not conform to the W3C Schema Standard Section 4.4.

Resolution

Derivation by restriction does not allow you to add or omit elements (unless they are optional in the base type), it simply allows you to restrict their valid values e.g. set a default value or set type="string" where previously no type was specified.

Some popular XML tools do not comply with the XSD standard and do not report such schema's as invalid.

Notes

Descrption Value
Article Created 7/2/2006
Versions All