Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - how to define a key which generates unique sequence number? >Thread Next - Re: how to define a key which generates unique sequence number? Re: how to define a key which generates unique sequence number?To: NULL Date: 10/3/2008 12:59:00 PM XML fellow wrote: > i would like to define a unique key in the XSD, and once generating a > default XML out of it (using XSD2INST tool), the XML will automaticaly > be populated with a unique sequence number. > > similar to defining a sequence number in DB. > > can anyone advise how to do that? A key is defined with the xs:key element and its child elements xs:selector and xs:field, see http://www.w3.org/TR/xmlschema-0/#specifyingKeysAndtheirRefs Whether that tool you mention is then able to generate keys I don't know. You might want to check its documentation or find out whether there is a support forum or mailing list. -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
