Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

Linq a viable solution for XML?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DBC User - 03 Mar 2008 19: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?
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.