-
-
Notifications
You must be signed in to change notification settings - Fork 356
Closed
Labels
Description
Checklist
- Have you asked your question on Stackoverflow or similar forum?
- 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?
Input
Code
let xmlStr = '<P><G ch="aaa>"/><G ch="bb"/></P>';
let result = fastXmlParser.parse(xmlStr, {
attrNodeName: '$',
textNodeName: '#text',
attributeNamePrefix: '',
ignoreAttributes: false,
allowBooleanAttributes: true,
trimValues: true
});
console.log(result);Output
{ P: { G: { '#text': '"/>', '$': [Object], G: [Object] } } }
expected data
{ P: { G: [Object, Object] } } }
Would you like to work on this issue?
- Yes
- No
Bookmark this repository for further updates.
Reactions are currently unavailable
