Friday, June 19, 2009

xsd:any element processContents attributuma

Olyan XSD-t kellett csinalnom ami egy szintig meghatarozza, hogyan nezzen ki az XML, de egy adott node alatt barmi lehetett. Erre volt jo az xsd:any element, de elsore belefutottam abba a hibaba, hogy nem allitottam be a processContents attributumot ami deafult strict-re volt alltiva es nekem lax kellett volna.

processContents
An indicator of how an application or XML pr
ocessor should handle validation of XML documents against the elements specified by this any element. If no processContents attribute is specified, the default is strict. If processContents is specified, it must one of the following:

strict

The XML processor must obtain the schema for the required namespaces and validate any element from those namespaces.

lax

The XML processor attempts to obtain the schema for the required namespaces and validate any element from those namespaces; however, if the schema cannot be obtained, no errors will occur.

skip

The XML processor does not attempt to validate any elements from the specified namespaces.