W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2002

The problem with XML Schema definition

From: Valeri Gavrilovets <valar@rambler.ru>
Date: Fri, 10 May 2002 09:14:55 -0400 (EDT)
Message-ID: <3CDBD394.5E624439@rambler.ru>
To: xmlschema-dev@w3.org
Hopefully anyone helps me by this "trivial" problem.
I have two kinds of possible xml documents:

First---------

<callResult type="java.util.Hashtable"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://host/schema/newSession.xsd">
     <result type="java.util.Hashtable">
        <STATUS>OK</STATUS>
        <Key1>123</Key1>
        <Key2>234</Key2>
        <Key3>324</Key3>
        <Key4>256</Key4>
     </result>
 </callResult>

Second-------

<callResult type="java.util.Hashtable"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://host/schema/newSession.xsd">
     <result type="java.util.Hashtable">
        <STATUS>INIT</STATUS>
        <ERROR>200</ERROR>
     </result>
</callResult>

Now the newSession.xsd schema should describe these two kinds of xml.
Could you help me giving some good ideas?
Received on Saturday, 11 May 2002 10:39:04 GMT

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