XMLStream should be a true Stream object
See original GitHub issueThe lib should be re-factored to become a “true” Stream object so that we can pipe a stream into XMLStream. I’ve done initial work which I know works with a simple example, but there’s a lot of more rework that needs to be done in order for all the functionality to work. Also, most likely, it’d be nice if it still worked to use the library using the old API.
What I want is for it to work like this (for example):
var xmlstream = new XMLStream(); // Options can (and should?) be passed here rather than by calling functions further down the road
fs.createReadStream('my.file').pipe(xmlstream);
... // Do business as usual with .on('endElement: item', function ( ... ) { ... })
You can find my initial work at https://github.com/cjblomqvist/xml-stream in my stream branch: https://github.com/cjblomqvist/xml-stream/tree/stream
Let me know if you want me to do a pull request. At this point I thought my branch was in such bad condition it wasn’t preferable yet.
Issue Analytics
- State:
- Created 11 years ago
- Reactions:3
- Comments:5
Top Results From Across the Web
XMLInputFactory (Java Platform SE 8 ) - Oracle Help Center
javax.xml.stream.allocator, sets/gets the impl of the XMLEventAllocator ... this is to support XML 1.0 documents, only the true setting must be supported.
Read more >Frequently Asked Questions - XStream
XStream will run without dependencies using the DOM driver on all Java runtimes or the StAX ... This is especially true when running...
Read more >Node.js streams for XML transformations with xml-stream
The function below returns transform stream that can be piped to any ... var xml = new XmlStream(stream); xml.preserve('item', true); ...
Read more >XmlWriter Class (System.Xml) | Microsoft Learn
The XmlWriter class writes XML data to a stream, file, text reader, or string. ... Indent should be set to true when using...
Read more >Answers to Frequently Asked Questions by Truestream
Registration & Plans · What is the difference between Truestream fiber and cable/DSL internet? · Will I be locked into a contract? ·...
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 FreeTop 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
Top GitHub Comments
Not actively working on my repo, except for merging in good PRs. All action is visible though in my repo.
Any update on this?