Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dataset xml schema loses decimal acurracy
Message
Information générale
Forum:
ASP.NET
Catégorie:
XML
Divers
Thread ID:
00709995
Message ID:
00710054
Vues:
13
From what I can tell, these attributes are not supported in .NET.

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

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform