How do I define an XML schema to support a GUID primary key?

P

PeteJ

Greeting to all,
A newbie question.
I would like to model an XML schema to match a sql table that uses the GUID
"uniqueidentifier" data type. There is no similar data type on the XML side.
What XML data type should I use for this? Can this be done?
Thanks
-Pete
 
C

Cor Ligthert

Hi Pete,

Why not open your IDE, add new item dataset, open your server explorer and
drag the table you want to use on the workscreen. All will exactly be showed
how it has to be.

I hope this helps?

Cor
 
P

PeteJ

Thanks, Cor. I'll give it a shot.


Cor Ligthert said:
Hi Pete,

Why not open your IDE, add new item dataset, open your server explorer and
drag the table you want to use on the workscreen. All will exactly be showed
how it has to be.

I hope this helps?

Cor
 
J

Jack

Here is the xml representation of Guid:

<xs:element name="ID" msdata:DataType="System.Guid, mscorlib,
Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"type="xs:string" minOccurs="0" />

Good Luck
 
P

PeteJ

Thanks, Jack.


Jack said:
Here is the xml representation of Guid:

<xs:element name="ID" msdata:DataType="System.Guid, mscorlib,
Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"type="xs:string" minOccurs="0" />

Good Luck
 

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

Top