bramstein / xsltjson

XSLTJSON - Convert XML to JSON using XSLT
http://www.bramstein.com/projects/xsltjson/
308 stars 94 forks source link

XML2Json convert string to number #17

Open suhakopan opened 4 years ago

suhakopan commented 4 years ago

Hi everyone,

I am using xml2json transform file.

My xml element:

<id>9999</id>

But after transform xml2json:

"id": 9999,

I want to this;

"id": "9999"

Because target source waiting to me this field string,but this file convert auto number my fields.

Please help

ranania commented 3 years ago

There is a condition near the end of the file that determines what should be treated as a string. Just modify the line below.