[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: database primary keys in XML Schema


xsd primary key

The publisher of the XML document understands the XSD (schema).  The publisher already has access to the XSD so the publisher understand what the keys are.  The same is true for parser and consumer.

The publisher does not specify the key, just populates the data in the document.

Everybody in the system understands the keys by the XSDs.

Sounds like you want to specify the key in the XML document and not just the XSD.  We decided against that approach.  By including a version for each XML document we ensure compatibility just incase the keys change in the future.

Dave


Markus Seibold <Markus.Seibold@g...>

02/13/2004 08:58 AM

       
        To:        David J Porter <PORTER_DAVID_J@L...>
        cc:        michael.h.kay@n..., xml-dev@l...
        Subject:        RE: database primary keys in XML Schema



David,
thanks for the code.
>
> Here is the XSD.  Notice the KEY element with the min and max occurs. That
>
> tells our parser what the key is for this message.  Our database staging
> tables have them marked as keys.
>
If I understand your schema correctly, the XML instance document creator has
to specify the key for the XML document when he creates the XML document, is
that correct?

How does he know the proper database key? Or is my understanding wrong?

Thanks again, Markus

--
Markus Seibold
------------------------------
Krebsgasse 6
D-93047 Regensburg
Germany
------------------------------
Email: markus.seibold@g...
Phone: +49 (941) 504 1009
Mobile: +49 (171) 212 6869
FAX: +49 (89) 1488 210457




PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.