- From: London . <epsilonknot@hotmail.com>
- Date: Thu, 04 Dec 2003 01:41:49 +0000
- To: xmlschema-dev@w3.org
Hi all, im reasonably new to xsd and im trying to use it to do an inherent datatype conversion for me when i read out of a dom. ie> <element name="data"> <complexType> <sequence minOccurs="0"> <element name="boolean" type="boolean" minOccurs="0" /> <element name="dateTime" type="dateTime" minOccurs="0" /> <element name="decimal" type="decimal" minOccurs="0" /> <element name="short" type="short" minOccurs="0" /> <element name="int" type="int" minOccurs="0" /> <element name="long" type="long" minOccurs="0" /> <element name="string" type="string" minOccurs="0" /> </sequence> </complexType> </element> would support the xml: <data> <int>1</int> <string>hello</string> </data> this works fine, but what i would like to do is have an xsd that could be used to validate this: <data> <value dt="int">1</value> <value dt="string">hello</value> </data> im at a complete loss here, any help would be appreciated. thanks London _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
Received on Wednesday, 3 December 2003 20:43:21 UTC