C# Use Linq to Extract a single XML attribute for each XML file in a directory.

Posted by guazz on Stack Overflow See other posts from Stack Overflow or by guazz
Published on 2010-05-11T21:25:08Z Indexed on 2010/05/11 21:34 UTC
Read the original article Hit count: 307

Filed under:
|
|
|

Hi all,

How do I use Linq to extract a single XML attribute form each XML file in a directory and put that element in a C# list. Do I have to loop thru each file one-by-one? The XML files are quite large so I'd like to do this without loading the entire file into memory.

Thanks, j

© Stack Overflow or respective owner

Related posts about c#

Related posts about linq-to-xml