Monday 15 June 2015

javascript - Quickest way to traverse an XML document with Node.js? -


I got to know the same question and it looks incredibly fast, but I node it Which can not be used with:

  & gt; Var xp = new XPathEvaluator (); Reference error: replicate the XPathEvaluator at repl: 1: 14 at REPLServer.self.eval (repl.js: 110: 21) at repl.js: 24 9: 20 at REPLServer.self.eval (repl.js: 122: 7) Not defined on the interface. & Lt; Anonymous & gt; (Repl.js: 23 9: 12) on the interface. EventEmitter.emit (events.js: 95: 17) Interface._online at (readline.js: 202: 10) interface ._line (readline.js: 531: 8) on interface._tagrow (readline.js: 760: 14) ) ReadStream.onkeypress (readline.js: 99: 10)   

Can I install it as a module? Or is there any alternative? The problem is that I am downloading many RSS feeds with about 900 entries. I'm downloading them for less than a second, but running on every element with jQuery again

  $ (xml) .find ('entry'). Each (function () {});   

... takes 10-15 seconds, which is not acceptable for web services. any suggestion?

If you have node If you want something for JS, then look at first, to see if it is not already present for common things such as XPath Traveler, it usually does in this case:

No comments:

Post a Comment