Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dataset xml schema loses decimal acurracy
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
XML
Title:
Dataset xml schema loses decimal acurracy
Miscellaneous
Thread ID:
00709995
Message ID:
00709995
Views:
46
I create a dataset from XML with one of the fields defined as below in the schema.
<xsd:element name="hoursworked">
   <xsd:simpleType>
	<xsd:restriction base="xsd:decimal">
		<xsd:totalDigits value="5"/>
		<xsd:fractionDigits value="2"/>
	</xsd:restriction>
   </xsd:simpleType>
</xsd:element>
When I WriteXML back to XML I loose the totaldigits and fractiondigits as seen below.
<xs:element name="hoursworked">
       <xs:simpleType>
           <xs:restriction base="xs:decimal" />
       </xs:simpleType>
</xs:element>
Anyone know how to prevent this?
Next
Reply
Map
View

Click here to load this message in the networking platform