You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Tze-John Tang <tz...@abbott.com> on 2007/11/30 15:42:26 UTC
XML parsing based on locale
I have tried to search for this, but have not had any luck. Can anyone
tell me how I might be able to set it up so that when I validate or parse
an XML document that I can do it based on a specific locale? This code is
running on a box in the US locale, but I might get data from the german
locale, where the decimal delimiter is different. How can I set the
locale for the Validator or the SAX parser?
I am using the JAXP api for validating the XML.
Thanks for any assistance.
-tj
Re: XML parsing based on locale
Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hi,
If you're referring to what you can do with XML Schema the definitions of
the built-in simple types [1] are fixed. The decimal delimiter for an
xs:decimal must always be a '.'.
Thanks.
[1] http://www.w3.org/TR/xmlschema-2/#built-in-datatypes
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org
Tze-John Tang <tz...@abbott.com> wrote on 11/30/2007 09:42:26 AM:
>
> I have tried to search for this, but have not had any luck. Can
> anyone tell me how I might be able to set it up so that when I
> validate or parse an XML document that I can do it based on a
> specific locale? This code is running on a box in the US locale,
> but I might get data from the german locale, where the decimal
> delimiter is different. How can I set the locale for the Validator
> or the SAX parser?
>
> I am using the JAXP api for validating the XML.
>
> Thanks for any assistance.
>
>
> -tj
---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org