|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: ignoring elements in certain namespace in schema?
> <any namespace="#other" maxOccurs="unbounded" minOccurs="0"
Should be ##other, BTW.
More specifically, you could declare the namespace foo instead of ##other,
as so:
<complexType name="someName">
<sequence>
<any namespace="foo" maxOccurs="unbounded" minOccurs="0"
processContents="lax"/> <!-- or "skip" if you want no validation on
the content -->
</sequence>
</complexType>
> See http://www.w3.org/TR/xmlschema-1/#Wildcards
>
> An W3C XML Schema schema is closed by default.
The content that the XML Schema *describes* is closed by default (sorry to
get picky here, Rick). The schema document itself is laxly validated; i.e.,
you can add attributes with names from other namespaces in your schema
definition without a complaint from an XML Schema validation engine:
<complexType name="someName" x:myName="Jeff">
<sequence>
<any namespace="foo" maxOccurs="unbounded" minOccurs="0"
processContents="lax"/> <!-- or "skip" if you want no validation on
the content -->
</sequence>
</complexType>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||







