question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

XMLStream should be a true Stream object

See original GitHub issue

The 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:open
  • Created 11 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

1reaction
cjblomqvistcommented, Aug 11, 2017

Not actively working on my repo, except for merging in good PRs. All action is visible though in my repo.

0reactions
willfarrellcommented, Aug 11, 2017

Any update on this?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found