assistunion / xml-stream

XML stream parser based on Expat. Made for Node.
MIT License
318 stars 110 forks source link

With N MyElement elements and M EndEvent handlers calls NxM times each handler. #65

Open pelicanorojo opened 8 years ago

pelicanorojo commented 8 years ago

with this xml: `

hi bye

and this handlers: xml.on('EndElement: MyElement', (myElement) => { console.log('detected 1'); });

xml.on('EndElement: MyElement', (myElement) => { console.log('detected 2'); }); `

the console will have: detected 1 detected 2 detected 1 detected 2