in the above scenario TPL is working fine, but look at below scenario..I use Foreach
If you have less data, TPL will not work good.
Never use this type of syntax for xml read, it will not work..
Parallel.ForEach(AllXMLNodes, element =>
{
//do something
});
https://www.youtube.com/watch?v=No7QqSc5cl8