← Prev in month ← Prev in thread

Flexible schema definition help

From
Eric Dalquist <>
To
Date
2004-09-13T18:06:19Z
ID
<>
Thread
Flexible schema definition help
I'd like to create an XML schema that will ensure a certain simple 
structure exists in the document but allows for any other elements or 
attributes.

I've attached an invalid XSD which is close to what I want. If I remove 
the anyType complex type and it's references the XSD is then valid and 
will validate my XML document correctly but there is no allowance for 
any elements or attributes beyond what is defined in the XSD. I'd rather 
have the XSD define a set of required elements and their structure but 
allow for any other elements and attributes in the document. I hope that 
description make sence and any help is very much appreciated.

Thank you,
    Eric Dalquist

PS: The error Oxygen is giving me with the attached XSD is:
E cos-nonambig: WC[##any] and "":folder (or elements from their 
substitution group) violate "Unique Particle Attribution". During 
validation against this schema, ambiguity would be created for those two 
particles.    layout.xsd    24:39
← Prev in month ← Prev in thread