W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2005

Define general elements

From: <Philipp.Bolliger@risk.sungard.com>
Date: Mon, 24 Jan 2005 17:33:08 +0100
To: xmlschema-dev@w3.org
Message-ID: <OFE4AC9F14.D819F891-ONC1256F93.005AE2D4-C1256F93.005ADD42@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 

 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!

Received on Monday, 24 January 2005 20:31:29 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:07 UTC