Created
May 28, 2017 07:35
-
-
Save evancauwenberg/defb4a1d4eefaaa1aba643c060dffaec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_read() { | |
// // List all xml tags that have more than one child. | |
this.xmlStream.collect('title'); | |
// // catch error | |
// this.xmlStream.on('error', console.log); | |
this.xmlStream.on(`updateElement: ${this.elementToExtract}`, (updateElement) => { | |
this.push(updateElement); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment