Description
fast-xml-parser does not treat attributes separated by (only) line breaks as attributes.
Input
<?xml version="1.0"?>
<abc
attrA="2"
>
value
</abc>
Code
parser.parse(`<?xml version="1.0"?>
<abc
attrA="2"
>
value
</abc>`, {
ignoreAttributes: false,
});
Output
{
"abc\nattrA=\"2\"\n": "value"
}
expected data
{
"abc": {
"#text": "value",
"@_attrA": "2"
}
}
Would you like to work on this issue?
Bookmark this repository for further updates.