Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Performance of schema validating in Xerces-C 2.7 on windows IA32 vs linux IA32 >Thread Next - Re: Maintaining a subset of a schema Maintaining a subset of a schemaTo: xmlschema-dev@--.--- Date: 8/2/2007 4:30:00 PM
I have an application which produces an XML log/report for which I have
a schema. These XML files contain lots of info/detail.
The schema is both given to 3rd parties who consume this file and used
in testing tools to ensure that the XML files are completely valid/as
intended.
Now, I need to create a smaller XML file which is a subset of the
original one but without a series of elements and attributes.
The question now is how to create (and maintain) a strict and readable
schema for this smaller/subset. I want to enforce that all these
elements/attributes are present or none at all.
In theory, I could annotate the full schema and try to generate a second
schema from it but I can't imagine how to determine if some element
needs a custom type because some sub-element's type has changed as well.
Or I would have to manually tag the parent elements.
I wonder what the best solution is. Others must have struggled with the
same problem and I don't want to reinvent the wheel ;-) If this isn't
the right place to ask such a question, please direct me to resources,
another forum, etc.
E.g. how to create a strict combined schema's for
<a u='0'>
<b v='1'>
<c w='2'/>
</b>
</a>
and the same but without the a/b@v attribute
<a u='0'>
<b>
<c w='2'/>
</b>
</a>
The c-element can be shared. It's obvious that b is a separate type. But
the type for a also needs to change!
Kind regards,
Andy Den Tandt
============================================
Andy Den Tandt
Technical Product Manager
Enfocus - an Artwork Systems Brand
http://www.enfocus.com
Artwork Systems N.V.
Artwork Toren
Bellevue 5/1101, B-9050 Gent, Belgium
T: +32 9 265 84 11
F: +32 9 265 84 10
============================================
From boris@k... Fri Aug 03 07:32:44 2007
Received: from maggie.w3.org ([193.51.208.68])
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
