score:2
Accepted answer
var paragraphsquery = xdoc.elements("novel")
.elements("paragraphs")
.elements("paragraph")
.select(p => p.elements("choice")
.select(c => c.value)
.tolist())
.tolist();
Source: stackoverflow.com
Related Query
- Using LINQ to Obtain Max of Columns for Two Dimensional Arrays
- Using LINQ to Filter Multi Dimensional Criteria
- Comparing Arrays using LINQ in C#
- Get different and common items in two arrays with LINQ
- Merge 2 arrays using LINQ
- Combining array of arrays into single, distinct array using LINQ
- Generate a two dimensional array via LINQ
- count number of identical elements in two arrays in linq
- Convert an object array of object arrays to a two dimensional array of object
- Linq on 2 arrays in 1 loop?
- C# Linq Char arrays Except() - Weird behavior
- LINQ search though a list of string arrays for a particular string
- using Linq to partition data into arrays
- Using Linq Except with two lists of int arrays
- JSON.NET and arrays using LINQ
- column operations on jagged arrays (sum, average, other functions) with Linq
- How to sort datatable with multi column using LINQ
- Linq Intersect with arrays
- Are LINQ .Last, .Skip, etc. methods optimized for arrays or List<T>?
- Cross join of unknown number of string arrays using linq
- Comparing Byte Arrays in LINQ to Objects
- LINQ query on a list of Object[] arrays
- how to join two arrays with linq
- Intersection of arrays in LINQ to CosmosDB
- LINQ question with string split and arrays in csv files
- Compare two arrays using LINQ
- Convert two arrays to a new one using LINQ
- Merging two Arrays using LinQ
- SelectMany in Linq and dimensional array?
- LINQ to SQL: Advanced queries against lists, arrays and lists of objects
More Query from same tag
- Utilising available method syntax within Generic Repository Pattern
- Linq Time(7) and TimeSpan Mapping
- updating existing row in a DataTable
- how do you execute a function on a List of objects using LINQ
- Returning a Query Result to an ListView when joining tables Using Visual Basic and Linq
- How to select by child collection value in LINQ
- Finding duplicate row using Linq
- I need to save the XML file using linq with xml code in C#
- having trouble with left join LINQ
- Get count of multiple values in a dataset table with extra columns
- LINQ select to new object, setting values of object in function
- How to retrieve the value of an element within an element in XML
- Is there a better way of calling LINQ Any + NOT All?
- Query with Nullable Values using LINQ
- Linq query with a join and a where clause giving an error
- Unified SQL getter with LINQ
- Left join in Linq?
- Calculate items, loop by month, adding month each time through
- C# Linq -Extension Method
- EF Core - complex query
- How to display elements of list from controller to view [MVC5]
- List filter based on date
- Simple Left join in Linq not working as expected
- Assign a list of values to another list using linq in c#
- Error in LINQ Left JOIN
- Select Only one row per user and date
- Only selected columns to Gridview ASP.NET LINQ
- Property reflection inside of a LINQ query doesn't behave as expected
- How to grasp all C# functional features?
- Is it possible to use Linq-SQL without drag-and-drop?