-
-
Notifications
You must be signed in to change notification settings - Fork 355
Closed
Labels
Feature-RequestNew features suggested by usersNew features suggested by users
Description
- Are you running the latest version?
- Have you included sample input, output, error, and expected output?
- Have you checked if you are using correct configuration?
- Did you try online tool?
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?
- Yes
- No
Bookmark this repository for further updates.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Feature-RequestNew features suggested by usersNew features suggested by users