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

Re: [xmlschema-dev] IE5 and XML instance documents connected to their schemas [guillaume.barrau question]

From: Bob Schloss <rschloss@us.ibm.com>
Date: Wed, 22 Aug 2001 11:44:20 -0400
To: guillaume.barrau@inforsud.com
Cc: xmlschema-dev@w3.org
Message-ID: <OF750F5DF0.A377D12D-ON85256AB0.00554CE3@pok.ibm.com>

Guillaume,

     I do not know if you question is conceptual or practical,
and if practical if it is specific to IE5 or not.

     Conceptually: some processor (usually a program)
is always the mediator in connecting the schema with the instance
document.  It could be an editor of instance documents that does
extra functions (like automatically suggesting attribute names or
element names based on context) based on the schema.  It could
be an instance document parser that validates the document
against the schema and throws an exception to the calling
program if it wasn't valid.  It could be a validator that provides
information about what types were used to assess different
sections of the document (and other info), in the Post Schema
Validation Infoset.  If the instance document uses more than
one namespace, then different schema fragments, usually one
or more for each namespace, are combined by the processor
to handle the validation.

     Practically, different processors have different
conventions for how a specific schema is associated with
a specific instance documents.  One way is the way
documented here:
http://www.w3.org/TR/xmlschema-1.htm#xsi_schemaLocation
     You should read the documentation that your
processor supplies.

     I suspect that a future version of IE will be able to use
a future version of MSXML4.DLL so that if the document you
ask to display is not valid according to some schema, some
kind of DOM event is raised which your JScript or VBScript
or whatever could catch.  However, you should be looking
at Microsoft Developer Network web site to find out actually what
functionality is planned, and for what release.

     In the meantime, the page at
http://www.w3.org/XML/Schema has a pointer to XSV
which can be used to validate instance documents against
schemas by filling in a web form, which uploads both
to a server, where validation is performed.  Perhaps this,
or the Xerces processors available from http://xml.apache.org,
might be something you can experiment with.

          Hope this helps,
          Bob

Bob Schloss
Next Gen Web group
IBM ThomasJ. Watson Research Center
Yorktown Heights, New York, USA


guillaume.barrau@inforsud.com@w3.org on 08/22/2001 05:30:46 AM

Sent by:  xmlschema-dev-request@w3.org


To:   xmlschema-dev@w3.org
cc:
Subject:  [xmlschema-dev] <none>





Hello ,

My name is Guillaume BARRAU, ( my english is not very good i do one's best
)

I start working on New Tech. and I try to understand how does "XML Schema"
work.

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..

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.
So How can i control or create a XML file that correspond to the
declaration of the XMLSchema?
HOW TO LINK XMLSCHEM AND XML file?

thank you very much.

guillaume BARRAU


My mail address:     guillaume.barrau@inforsud.com


(See attached file: exemple.txt)
___________________________________________________________________________
________________________
En français:

Bonjour,

Je travaille depuis quelques jours sur les fichiers XML et sur les Schéma
XML.
Mon problème est que je n'arrive pas à "lier" un fichier XML à un schéma.
Voir fichier joint:
J'ai créé un fichier xml avec un tag dont la valeur n'est pas correcte par
rapport à la déclaration qui est faite dans le fichier schéma .xsd sur ce
tag.
 A l'affichage du fichier .xml par iexplorer5 cela ne pose aucun problème.
Ne devrait-il pas y avoir un message d'erreur?
Comment créer un fichier XML et le lier à un fichier schéma? )
___________________________________________________________________________
________________________
Received on Wednesday, 22 August 2001 11:45:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:23 GMT