-
-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
text with "leading-zero" result in wrong value #10
Comments
It can be easily done. Bur unfortunately I don't have any machine now a
days. So you'll have to wait for a month.
…On 17-May-2017 10:31 PM, "Steve Reichenbach" ***@***.***> wrote:
Hi, i faced an issue regarding the conversion of "date" and "time" values
with leading zeros.
Given:
<?xml version="1.0"?>
<date>02082017</date>
Result:
{
"date": 2082017
}
Expected:
{
"date": "02082017"
}
I need the original, *unprocessed* values of the XML. So my idea would
be, to have an option like "preserveTextNodeValues": true or "convertTextNodeValues":
false to skip the value conversion and keep the original string value.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#10>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHVgKHwlfM5fd3EF-PxpCmKX95YmpQUbks5r6vajgaJpZM4Nd3ks>
.
|
I've created a pull request for that (#11). Would be nice if you can check it. Maybe it is possible to handle that issue earlier with that. |
Thanks a lot for your valuable time to do the changes. But there is one more task need to run ie "bundle". It'll generate the bundled js for web use in lib folder. Can you plz update that as well? I'm sorry to be dependent. |
It is done. |
I have merged the changes. And updated the version. Let me see if I can publish it to npm using my mobile. Otherwise you'll have to update it via github. Thanks for your effort and time. *I hope to get laptop in next 2 weeks. |
Great, thank you very much. |
Is this issue resolved in latest npm update 2.4.3? |
Yes. It must be. Let me know if you see any issue.
…On 07-Jun-2017 7:55 PM, "NIDHI TANDON" ***@***.***> wrote:
Is this issue resolved in latest npm update 2.4.3?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHVgKEYut_2mo8hAh1FFN8owmy12HQk8ks5sBoG7gaJpZM4Nd3ks>
.
|
This issue is not resolved yet ... with this option set : The output is still wrong |
@fidelsam1992 This issue is very old. options name have been changed now. Can you please check README for correct option name? |
Hi, i faced an issue regarding the conversion of "date" and "time" values with leading zeros.
Given:
Result:
Expected:
I need the original, unprocessed values of the XML. So my idea would be, to have an option like
"preserveTextNodeValues": true
or"convertTextNodeValues": false
to skip the value conversion and keep the original string value.The text was updated successfully, but these errors were encountered: