W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2005

Define general element

From: <Philipp.Bolliger@risk.sungard.com>
Date: 25 Jan 2005 10:49:16 -0700
To: www-xml-schema-comments@w3.org
Message-ID: <OF6691A80A.EB1436CE-ONC1256F93.0059DCA0-C1256F93.005A5675@risk.sungard.com>
Dear All,

I'm not sure if this is the right place to ask this question but I 
couldn't find a forum or bb on the net better than this.

I'm using xml-files as a long-term persistency for my application. 
Naturally file-size is quite big on average and I don't want to use an 
exact schema because the effort of keeping it up-to-date is just to big.

All my objects (that become xml-elements) DO have something in common 
like:

 ALL elements in the xml-file will have an attribute 'id' and and an 
attribute 'role'
SOME elements do have an attribute 'action'

Is it possible to model these constraints using XML Schema, even if I 
don't wont to create named elements (ie <xs:element name="ObjectA" ...) ??

Your help is very much appreciated!

THX
Received on Tuesday, 25 January 2005 17:51:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 October 2007 06:13:36 GMT