W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2001

AW: [xmlschema-dev] <none>

From: Franz-Josef Herpers <franz-josef.herpers@spmtechnologies.com>
Date: Wed, 22 Aug 2001 15:23:31 +0200
Message-ID: <EFB16FB1CC4AD511AD670003470D774946216B@mail.spm.de>
To: xmlschema-dev@w3.org

> My problem is that I don't know how to link and instance (XML 
> document ) to
>  a XMLshema. Or how to create an instance that is in accordance
> with a XmlSchema concerning the declaration of element, 
> attribute etc..

<rootelement xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

You link a xml-file to a schema via the noNamespaceSchemaLocation
-Attribute in the start-Tag of your root-Element. The value of the
attribute is the path (URL) to your XML-Schema.

> I create a XML file  with a tag that the value is not correct 
> in comparison
>  to the declaration of this tag in the XMLSchema. And If i 
> try to display
> the XML file with
> IE5 there is no problem, no error message.

That's right, because the built-in-Parser in IE5 (msxml) does not
support XML-Schema. The newest msxml-Paser (msxml4beta) does, but 
in can't work in replace mode, which means won't work as built-in.

> So How can i control or create a XML file that correspond to the
> declaration of the XMLSchema?

Use XSV or Xerces to validate your XML-Files. These and other tool
you'll find at http://www.w3.org/XML/Schema.

Hope that helps
Received on Wednesday, 22 August 2001 09:23:39 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:52 UTC