Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: how to restrict validation to part of the W3C schema?

From: "Pete Cordell" <petexmldev@---------.--->
To: "dave" <ceek63@-----.--->, <user@--------.------.--->
Date: 2/7/2008 10:22:00 AM
Original Message From: "dave"

> I would like to restrict the validation only to part
> of my XML schema. I do not want to validate anything
> under certain Element, say 'noValidation'. This
> element in turn contains an XML(which is WellFormed
> but not Valid) for which there is no schema for
> whatever reason. But I would want to parse the XML
> under 'noValidation' element.
>
> Here're my questions:
> 1. How would I specify in the Schema that
> 'noValidation' element should not get validated? Is
> using ANY a valid use case in this situation although
> it's not used for Schema extension purpose here? CDATA
> may not be a good choice because I would NOT be able
> to parse anything under 'noValidation'.

>From an XSD point of view, xs:any should be fine, perhaps nested within an 
element.  e.g.

<xs:element name='nonValidated'>
    <xs:complexType><xs:sequence>
        <xs:any namespace='##any' processContents='skip'
            minOccurs/maxOccurs etc. />
    </xs:sequence>...

The fact that it is not being used as an extension is not an issue.  For 
example, one use-case of this sort of thing is including chunks of XHTML 
within an XML file.

HTH,

Pete Cordell
Codalogic
Visit http://www.codalogic.com/lmx/ for XML C++ data binding



From E.Balter@F... Thu Feb 07 13:22:53 2008
Received: from wiggum.w3.org ([128.30


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent