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

RE: when to validate XML while being created programmatically..

From: Michael Kay <mike@saxonica.com>
Date: Fri, 21 Dec 2007 09:11:31 -0000
To: "'dave'" <ceek63@yahoo.com>, <xmlschema-dev@w3.org>
Message-ID: <009401c843b1$7a76d660$6401a8c0@turtle>
RE: when to validate XML while being created programmatically..

> Let's say, the W3C schema has key/keyref constraints.

When you validate incrementally, violations of key/keyref constraints will
typically be detected and reported when processing the endElement event of
the element that defines the key. You don't need to tell the validator when
this happens, it can tell. It is true, however, that if the error is that
the value in some keyref has been misspelled, then it might be reported some
time after the error actually occurred.

Michael Kay
http://www.saxonica.com/
Received on Friday, 21 December 2007 09:11:51 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.