[Nsi-wg] Change of xsd:int for large numbers

Katsuhiko OHKUBO ohkubo-k at suri.co.jp
Tue Jul 30 23:53:38 EDT 2013


Hi John,

(2013/07/31 9:12), John MacAuley wrote:
> Is anyone against me changing these to an integer or perhaps  nonNegativeInteger?

I prefer xsd:long or xsd:unsingedLong (64 bit integer),
and they seem enough for the purrpose.

Here is the mapping of xsd and Java types.
http://xmlbeans.apache.org/docs/2.0.0/guide/conXMLBeansSupportBuiltInSchemaTypes.html

In Java, xsd:integer and xsd:nonNegativeInteger will be BigInteger object.
Java programmers must write such as
	BigInteger x = BigInteger.valuof(1000);
	BigInteger y = ...;
	BigInteger z = x.add(y);
It's too complicated...

Thanks

-- 
Katsuhiko OHKUBO ookubo-k at aist.go.jp


More information about the nsi-wg mailing list