We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4dcf94 commit 399823eCopy full SHA for 399823e
streamer/index.js
@@ -0,0 +1,11 @@
1
+require('total.js');
2
+
3
+U.download('http://www.w3schools.com/xml/cd_catalog.xml', ['get'], null, function(err, response) {
4
+ response.on('data', U.streamer('</CD>', function(value, index) {
5
+ if (index === 0)
6
+ value = value.substring(value.indexOf('<CD'));
7
+ var xml = value.parseXML();
8
+ xml.index = index;
9
+ console.log(xml);
10
+ }));
11
+});
0 commit comments