XML result set schema validation

I am trying to design a XML schema for a SOAP message body.
 
I need to design the XML schema for a document that may need
to be initialized with a XML fragment that may vary with
different levels of details.
 
If the document instance needs to be XSD schema validated, how
should the XML fragment be designed such that schema validator
will accept the different document instances having different
detail levels. In some ways the XML document is very much like
the result set of DBMS query. All result sets are valid against
the same table of data, but having different level details. The
problem is that each level of etail may have different schema
for those elements.
 
Any ideas?
 
Is this a problem for XQuery or does XML schema provide enough
richness that we can add different XML fragments with same
XML schema constraints provided by the XSD spec for eacg of
the XML fragments in the container XML instance?
 
thanks,
Tony
 
 
 


---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Received on Wednesday, 18 June 2003 02:53:09 UTC