What about the performance between LinQ to Xml and using the XPath

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hello!

Can somebody say something if there is a huge difference in performance when
I compare using Linq to Xml and the XPath ?
I prefer the Linq instead of the XPath..

//Tony
 
Can somebody say something if there is a huge difference in performance when
I compare using Linq to Xml and the XPath ?

No reason to expect a big difference.

Both navigate a XML DOM. And they do it a very similar way.

For XPath the XPath expression need to be parsed, but that
should be just a little overhead.
I prefer the Linq instead of the XPath..

I would pick XPath. It is a standard. So you can reuse
your knowledge in practically any programming language.

Arne
 
Back
Top