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

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
 
A

Arne Vajhøj

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top