Wont parse big xml files.
See original GitHub issueChecklist
- Are you running the latest version? (3.12.5)
- Have you checked if you are using correct configuration? (Different configurations, including the default one wont work)
- Did you try online tool? (Not working either)
Input
This file: https://raw.githubusercontent.com/gtk-rs/gir-files/master/GLib-2.0.gir
Code
const fs = require('fs')
const xmlData = fs.readFileSync('GLib-2.0.gir').toString()
const tObj = fastXmlParser.getTraversalObj(xmlData)
Output
Browser:
xmlNode.js:11 Uncaught TypeError: this.child[t.tagname].push is not a function
at t.exports.addChild (xmlNode.js:11)
at Object.e.getTraversalObj (xmlstr2xmlnode.js:90)
at Object.e.parse (parser.js:10)
at HTMLButtonElement.<anonymous> ((index):74)
at HTMLButtonElement.dispatch (jquery-3.2.1.min.js:3)
at HTMLButtonElement.q.handle (jquery-3.2.1.min.js:3)
Node.js
/home/user/github/GirExtractor/node_modules/fast-xml-parser/src/xmlNode.js:11
this.child[child.tagname].push(child);
^
TypeError: this.child[child.tagname].push is not a function
at module.exports.addChild (/home/user/github/GirExtractor/node_modules/fast-xml-parser/src/xmlNode.js:11:39)
at Object.getTraversalObj (/home/user/github/GirExtractor/node_modules/fast-xml-parser/src/xmlstr2xmlnode.js:90:25)
at Object.<anonymous> (/home/user/github/GirExtractor/gir/read.js:37:28)
at Module._compile (internal/modules/cjs/loader.js:707:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10)
at Module.load (internal/modules/cjs/loader.js:605:32)
at tryModuleLoad (internal/modules/cjs/loader.js:544:12)
at Function.Module._load (internal/modules/cjs/loader.js:536:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:760:12)
at startup (internal/bootstrap/node.js:308:19)
expected data
Something that’s not an error.
Would you like to work on this issue?
- Yes
- No (Sorry, lacking time)
Bookmark this repository for further updates.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Parsing a big xml file Java - Stack Overflow
The only way to avoid parsing the whole file every time you run this is to put the data in an XML database....
Read more >Parsing large XML files - Google Groups
I'm attempting to parse a large (500MB) XML, specifically I am trying to ... Does anyone know a way of searching within root...
Read more >How to parse XML files too big to fit in memory
Parsing the XML is the easy part - you can do this with SAX or StAX. The tricky part is processing the information...
Read more >Processing large XML files - Medium
Processing large XML files. In the rail industry we frequently have to download, parse and save huge amounts of data. These data feeds...
Read more >PARSE XML with large XML files - Adabas-Natural
Hello, is it possible to parse large XML files line by line with Natural, kind of like a SAX parser in Java? The...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Done. Please use 3.12.7
ok let me try that. thanks