So far all the examples I have seen been working with simple XML
files. Just curious, is Linqq a viable solution for handling a large
XML file, when I say large, it means it has almost 2K+ nodes in it and
it keep growing as well?
Thanks.
Jon Skeet [C# MVP] - 03 Mar 2008 22:21 GMT
> So far all the examples I have seen been working with simple XML
> files. Just curious, is Linqq a viable solution for handling a large
> XML file, when I say large, it means it has almost 2K+ nodes in it and
> it keep growing as well?
I believe LINQ to XML does support some streaming scenarios, but I
don't know the details of it. I suggest you find specific LINQ to XML
tutorials, pages and books.
2K nodes doesn't sound *very* large, to be honest - I think of "large"
as "too big to reasonably hold in memory".

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
DBC User - 04 Mar 2008 15:38 GMT
> > So far all the examples I have seen been working with simple XML
> > files. Just curious, is Linqq a viable solution for handling a large
[quoted text clipped - 11 lines]
> Jon Skeet - <sk...@pobox.com>http://www.pobox.com/~skeet Blog:http://www.msmvps.com/jon.skeet
> World class .NET training in the UK:http://iterativetraining.co.uk
Thanks for the info.
Arne Vajhøj - 05 Mar 2008 02:37 GMT
> So far all the examples I have seen been working with simple XML
> files. Just curious, is Linqq a viable solution for handling a large
> XML file, when I say large, it means it has almost 2K+ nodes in it and
> it keep growing as well?
It should be fine.
The reason you usually see small XML in examples is purely practical.
10 lines of english + 10000 lines of XML + 10 lines
of C# will annoy many readers.
Arne