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 using XMLBuilder to serialize attributes with the string value "true", they are incorrectly serialized as Boolean attributes, regardless of the Allow Boolean Attributes option's state. This results in an output where the attribute appears without an explicit value, which differs from the expected behavior where the attribute should explicitly show "true".
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.
Setting suppressBooleanAttributes to false solves this problem.
I think it is kind of unintuitive. It's odd that {"@_Property": "true"} gets treated as a boolean attribute and suppressed, yet {"@_Property": false} and {"@_Property": "false"} are not affected in the same way. Besides, I would expect they will not be regarded as boolean attributes and suppressed after setting allowBooleanAttributes to false.
Description
When using XMLBuilder to serialize attributes with the string value "true", they are incorrectly serialized as Boolean attributes, regardless of the Allow Boolean Attributes option's state. This results in an output where the attribute appears without an explicit value, which differs from the expected behavior where the attribute should explicitly show "true".
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: