<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> owner-xml-dev@ic.ac.uk
[mailto:owner-xml-dev@ic.ac.uk]<B>On Behalf Of </B>Giorgos
Kaltekis<BR><B>Sent:</B> Monday, August 02, 1999 7:04 AM<BR><B>To:</B>
xml-dev<BR><B>Subject:</B> XML-data for defining schemas<BR><B>Importance:</B>
High<BR><BR></DIV></FONT>
<DIV><FONT size=2>I am trying to write my own schemas using the Xml-data
schema provided by Microsoft. I use the following lines</FONT></DIV>
<DIV><FONT size=2><Schema xmlns="urn:schemas-microsoft-com:xml-data"
<BR> xmlns:dt="urn:schemas-microsoft-com:datatypes"></FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>to refer to the XML-data. When I try to use the validation
feature, for example put a string to an element whose type has been declared
as an int, I cannot see an error from IE5. Shouldn't I?<BR></FONT><FONT
size=2><FONT color=#0000ff face=Arial><SPAN
class=325450913-03081999></SPAN></FONT></FONT></DIV>
<DIV><FONT size=2><FONT color=#0000ff face=Arial><SPAN
class=325450913-03081999>No. Validation is switched off when loading an XML
document into IE5. You need to create the parser object, set "validateOnParse"
to TRUE and then load the document to get the validation working. And this
actually only works for document.load, not for
document.loadXML.</SPAN></FONT></FONT></DIV>
<DIV><FONT size=2><FONT color=#0000ff face=Arial><SPAN
class=325450913-03081999> </SPAN></FONT></FONT></DIV>
<DIV><FONT size=2>So, I feel that my schema cannot use the features of the
XML-data of Microsoft. HAS ANYBODY USED MICROSOFT'S XML-DATA WITHOUT ANY
PROBLEM?<BR></FONT><FONT size=2><FONT color=#0000ff face=Arial><SPAN
class=325450913-03081999></SPAN></FONT></FONT></DIV>
<DIV><FONT size=2><FONT color=#0000ff face=Arial><SPAN
class=325450913-03081999>Yes, see above.</SPAN></FONT></FONT></DIV>
<DIV><FONT size=2><FONT color=#0000ff face=Arial><SPAN
class=325450913-03081999> </SPAN></FONT></FONT></DIV>
<DIV><FONT size=2>If so, HOW?</FONT></DIV>
<DIV><FONT size=2>I would be very glad to hear some opinions, because I am
working on my project for the university and it is very urgent to know
whether or not I can use the XML-data technology is writing
schemas.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=325450913-03081999>Yes, you can, it's just not as easy as it
might be. For instance you can use Microsoft's XML notepad and
configure it to "validateOnParse". You will then get the validation error
you are looking for when loading a document...</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=325450913-03081999> </SPAN></FONT></DIV></BLOCKQUOTE></BODY></HTML>