You could also have a look at the Binary and Conversion Module:
http://docs.basex.org/wiki/Binary_Module http://docs.basex.org/wiki/Conversion_Module
On Fri, Apr 5, 2019 at 4:01 PM Andre Bovy andre.bovy@gmail.com wrote:
In fact, I am converting an X509 certificate (Base64) into XML and some of the properties of the certificates are BigInteger.
No problem, I just write a small class which will do the translation into String
Perhaps a topic to add in the CRYPTO module
Thank you, André
On 5 Apr 2019, at 15:52, Christian Grün christian.gruen@gmail.com wrote:
Hi André,
I think that BaseX try to match the java type “BigInteger" into a XQuery type "xs:integer” which is not possible when the value is too big.
Exactly, that’s why.
If there’s a chance to write your code in plain XQuery, then I would definitely recommend that. You indicated that you need the result as string: Do you want to check if your input is a valid integer value?
Best, Christian