Is it possible to create separate string lists in Linq to XML???

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span style="color:#333333; font-family:Segoe UI,sans-serif Is it possible to create separate lists in Linq to XML??? I would like to create three separate lists
<span style="color:#333333; font-family:Segoe UI,sans-serif List<String> emailList1, List<String> emailList2, List<String> emailList3 from the XML file below.
<pre class="prettyprint <Emails>
<title name="listone
<email>john.spam@domain.com</email>
<email>jane.newsletter@domain.com</email>
</title>
<title name="listtwo
<email>victor.spam@domain.com</email>
<email>mary.newsletter@domain.com</email>
</title>
<title name="listthree
<email>rick.spam@domain.com</email>
<email>lloyd.newsletter@domain.com</email>
</title>
</Emails>
[/code]
<br/><hr class="sig sean zhang signature

View the full article
 
Back
Top