Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / October 2003

Tip: Looking for answers? Try searching our database.

Commas and periods in xsd

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Antonio Maciel - 21 Oct 2003 18:18 GMT
Hi.

I defined a simpletype as a decimal in my xsd file. If I type a value like
12.7 the validation works, but if I try 12,7 the validation process gives me
an error. I am in Brazil, and here decimal numbers are represented with
commas, instead of periods (.). Is it possible to make the validation
process accept commas instead of periods for decimal numbers?

Thanks,

Antonio Maciel
Chris Lovett - 22 Oct 2003 07:01 GMT
The data type formats in XML are stored in a language neutral format so that
they are truly globally interchangeable.
Locale formatting of XML data is done at the UI level, and not in the XML
itself.
Use XmlConvert to convert those strings to typed values.
Use System.Globalization.NumberFormatInfo to convert those typed values to
the right locale specific strings.

> Hi.
>
[quoted text clipped - 7 lines]
>
> Antonio Maciel

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.