PC Review


Reply
Thread Tools Rate Thread

DataSet.ReadXml International Problem

 
 
=?Utf-8?B?SmFrZSBQZWFyc29u?=
Guest
Posts: n/a
 
      2nd May 2005
Hi,
My application writes out an XML result file with an embedded schema that
can later be opened by another part of the application that renders the data
in a chart and grid. It works great using the US regional setting in WinXP.
A customer of ours in Norway gets an exception when the data is read in. The
code to read the XML is this:

DataSet ds = new DataSet();
ds.ReadXml(fileName, XmlReadModel.ReadSchema);

The XML that is being read is:

<?xml version="1.0" encoding="utf-8"?>
<Results>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Snapshot">
<xs:complexType>
<xs:sequence>
<xs:element name="Item">
<xs:complexType>
<xs:attribute name="Value0" type="xs:double" />
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Value0" type="xs:string" />
</xs:complexType>
</xs:element>
</xs:schema>
<Snapshot Value0="number">
<Item Value0="0" />
<Item Value0="1" />
<Item Value0="0,248668584157093" />
</Snapshot>
</Results>

The last Item element is a double, in the "Norwegian (Nynorsk)", setting the
decimal place is a comma. Any ideas how to get this to read properly?

Thanks,
Jake Pearson
(E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with DataSet ReadXml Angel \Java\ Lopez Microsoft Dot NET Framework 0 19th Dec 2006 07:53 PM
Problem in Dataset.ReadXml Innes Microsoft ADO .NET 0 16th Jul 2004 02:10 PM
Problem with readXml into DataSet Linus Rörstad Microsoft Dot NET Compact Framework 2 10th May 2004 06:55 PM
RE: problem with DataSet.ReadXml() Lewis Wang [MSFT] Microsoft C# .NET 1 23rd Jul 2003 03:55 PM
Re: problem with DataSet.ReadXml() hs Microsoft C# .NET 0 22nd Jul 2003 11:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:01 AM.