You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when parsing an XML tag that can have tag values of "A6" or "6.0", the intention is that the specific XML tag values are always handled as strings. An attempt was made to utilise the parser option "tagValueProcessor". During debugging, it was observed that within the function OrderedObjParser.parseTextData, the function OrderedObjParser.parseValue is called on the result of the callback of tagValueProcessor. The function OrderedObjParser.parseValue will parse the value "6.0" as the integer "6". However, all tag values of "evil" should be parsed as strings.
Did I miss anything or is this intended behavior? Thanks in advance for taking the time!
We're glad you find this project helpful. We'll try to address this issue ASAP. You can vist https://solothought.com to know recent features. Don't forget to star this repo.
In your case, you want o set the original value without parsing. As per docs, "If tagValueProcessor returns undefined or null then original value would be set without parsing."
Please check docs for more ways of achieving it. Please also give a try to v5. Let me know if you still need any help.
Description
Hi there,
when parsing an XML tag that can have tag values of "A6" or "6.0", the intention is that the specific XML tag values are always handled as strings. An attempt was made to utilise the parser option "tagValueProcessor". During debugging, it was observed that within the function OrderedObjParser.parseTextData, the function OrderedObjParser.parseValue is called on the result of the callback of tagValueProcessor. The function OrderedObjParser.parseValue will parse the value "6.0" as the integer "6". However, all tag values of "evil" should be parsed as strings.
Did I miss anything or is this intended behavior? Thanks in advance for taking the time!
Input
Code
Output
expected data
Would you like to work on this issue?
Bookmark this repository for further updates. Visit SoloThought to know about recent features.
The text was updated successfully, but these errors were encountered: