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.43k stars 297 forks source link

Parser erroneously adds `"@_/": true` attr for self-closing stop nodes #654

Closed smoores-dev closed 1 month ago

smoores-dev commented 1 month ago

Description

When the `allowBooleanAttributes` flag is set on `XMLParser`, the parser will interpret the closing `/` in a self-closing stop node as a boolean attribute. This introduces further problems when attempting to build the parsed data back into a string, as it produces invalid XML. E.g., ` Githubissues.
  • Githubissues is a development platform for aggregating issues.