Creating a numeric ID Attribute

V

Victor Engmark

Hello all,

I'm working on an XML Schema to define the rules for valid data to
import into a database. However, it seems that the datatype xs:ID
requires a _letter_ as the first character, and my IDs are numeric.

Is there any other standard XML Schema datatype which has the same
restrictions as xs:ID, without the restriction on the first letter? If
not, how can I create such a datatype?
 
S

Stan Kitsis [MSFT]

Hi Victor,

Depending on what you are trying to achieve, you might be able to use
xs:unique/xs:key/xs:keref to enforce uniqueness.

--
Stan Kitsis
Program Manager, XML Technologies
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,838
Latest member
KandiceChi

Latest Threads

Top