Creating a new data type
Posted: Mon Aug 13, 2007 1:46 pm
Hi all
I have 2 questions on creating data types:
1)
I need my "datereturn" attribute to be in a specific format, or contain empty value.
For example: 2007-02-02 12:22:00, or "".
2)I need my "avgrank" attribute to be decimal OR empty. If i use decimal with an empty answer i get a validation error.
This is my Schema:
Thanks
I have 2 questions on creating data types:
1)
I need my "datereturn" attribute to be in a specific format, or contain empty value.
For example: 2007-02-02 12:22:00, or "".
2)I need my "avgrank" attribute to be decimal OR empty. If i use decimal with an empty answer i get a validation error.
This is my Schema:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!--W3C Schema generated by XMLSpy v2007 sp2 (http://www.altova.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="getrank">
<xs:complexType>
<xs:attribute name="rc" use="required" type="xs:int"/>
<xs:attribute name="datereturn" use="required" type="xs:????????"/>
<xs:attribute name="avgrank" use="required" type="xs:????????"/>
</xs:complexType>
</xs:element>
</xs:schema>