We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
NaturalIntelligence
Learn more about funding links in repositories.
Report abuse
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using preserveOrder: true on a self-closing stopNode results in the tag emitted as a text node.
preserveOrder: true
const XMLParser = require('fast-xml-parser').XMLParser; const parser = new XMLParser({preserveOrder: true, stopNodes: ["*.foo"]}); console.dir(parser.parse('<root><foo name="bar"/></root>'), { depth: null });
[ { root: [ { foo: [ { '#text': '' } ] }, { '#text': 'foo name="bar"/>' } ] } ]
[ { root: [ { foo: [ { '#text': '' } ] } ] } ]
Would you like to work on this issue?
Bookmark this repository for further updates.
The text was updated successfully, but these errors were encountered:
I'm glad you find this repository helpful. I'll try to address your issue ASAP. You can watch the repo for new changes or star it.
Sorry, something went wrong.
Android: work around NaturalIntelligence/fast-xml-parser#435
ffa8baf
83fef6d
No branches or pull requests
Description
Using
preserveOrder: true
on a self-closing stopNode results in the tag emitted as a text node.Code
Output
Expected Output
Would you like to work on this issue?
Bookmark this repository for further updates.
The text was updated successfully, but these errors were encountered: