Is XPath much more efficient as compared to DOM and SAX?

前端 未结 5 862
再見小時候
再見小時候 2020-12-07 00:20

I need to parse an xml string and find values of specific text nodes, attribute values etc. I\'m doing this in javascript and was using the DOMParser class for the same. Lat

5条回答
  •  误落风尘
    2020-12-07 01:09

    See http://code.google.com/p/jlibs/wiki/XMLDog

    We give set of xpaths to XMLDog and ask to sniff some XML document. It uses SAX and with one pass over the document it evaluates all the given XPaths.

提交回复
热议问题