robrighter / node-xml

An xml parser for node.js written in javascript.
197 stars 59 forks source link

Add parseFileSync and parseStringSync. #25

Closed trotter closed 12 years ago

trotter commented 12 years ago

Having a synchronous version makes some operations in client libraries easier.

astro commented 12 years ago

+1

The parser doesn't do I/O, therefore it is unnecessary that it runs asynchronously by default. Actually, all you need to do is to remove the setTimeout(…, 0) in SaxParser.prototype.parseString.

robrighter commented 12 years ago

Removed the setTimeout all together.