NaturalIntelligence / fast-xml-parser

Validate XML, Parse XML and Build XML rapidly without C/C++ based libraries and no callback.
https://naturalintelligence.github.io/fast-xml-parser/
MIT License
2.53k stars 303 forks source link

Returning null with tagValueProcessor #575

Open patryk-smc opened 1 year ago

patryk-smc commented 1 year ago

Hello, I'm currently working with an XML document that is parsed and results in empty strings. For my use case, I would rather these empty strings be represented as null values. However, I've noticed that when I return null using the tagValueProcessor, it gives me a default value instead. Could someone explain the reasoning behind this? Is there any way to modify this behavior? Thank you.

github-actions[bot] commented 1 year ago

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.