Which parser: SAX, DOM or xpath?

I have xml on which I run queries as stated below. Which parser (sax or DOM or xpath) is best to retrieve query node by id? Can you please explain me this with some sample code so that this will help me a lot? I want to write a generic class which reads queries by id and passes parameters to it. What is the best way to return values after we executing queries since every query may return a different set of values? select * from users where name=? select * from users where email=?
Refer stackoverflow.com/questions/9758882/…

以上就是Which parser: SAX, DOM or xpath?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准