score:0
Accepted answer
dim ns as xnamespace = "http://tempuri.org/gridlayerschema.xsd"
dim query = from e1 in xdoc.root.elements(ns + "header")
select new with {.name = e1.element(ns + "name").value}
Source: stackoverflow.com
Related Query
- XML LINQ query returns no data
- linq query Map repeating EDI data to XML structure
- Linq query to access data from xml
- Using LINQ to query XML and return empty string if no data is present
- Vb.net linq query on xml data
- LINQ query — Data aggregation (group adjacent)
- How/Can I use linq to xml to query huge xml files with reasonable memory consumption?
- LINQ to XML optional element query
- Query data using "Contains" keyword in Dynamic Linq in C#
- How to I use TryParse in a linq query of xml data?
- add data to existing xml file using linq
- Get excel cell value with Row and Column Position through open xml sdk linq query
- LINQ to SQL: Complicated query with aggregate data for a report from multiple tables for an ordering system
- Is there any way to create a LINQ query as a variable without having the data source (yet)?
- Extract data from a XML string using linq vs xmlDocument
- LINQ - using a query expression to calculate data time difference
- LinQ query with multiple tables and extracting data
- LINQ Query to insert data into the database
- Linq to XML Simple Query
- LINQ to XML query attributes
- LINQ EF Join query from 2 different data context
- What is the return type for a anonymous linq query select? What is the best way to send this data back?
- LINQ query performance issue when fetching data from db in MVC Razor
- Linq query to return filtered data
- How to detect no data returned in C# LINQ query
- Parsing XML Data with LINQ
- LINQ Query to retrieve multiple levels of relational data
- LINQ to XML gets no data with schema set
- Using ToList() on Enumerable LINQ query results for large data sets - Efficiency Issue?
- Advanced LINQ Grouping and Projection Query for Hierarchical Data (EF 4.0 + LINQ + ASP.NET MVC + HighCharts)
More Query from same tag
- Linq XML Read Element with Attribute
- Lambda expression for multiple Guids
- LINQ with Where and All not filtering data - What is wrong with this query?
- error: no match for ‘operator=’ (operand types are ‘const yyy’ and ‘std::remove_reference<const yyy&>::type’ {aka ‘const yyy’})
- What is the most efficient way to join two lists in C# on a common field?
- SQL to LINQ - multiple tables left outer join with where clause referring right table
- How to add a where clause to an EF query which has a grouping
- RavenDB full-text search dictionaries using IRavenQueryable
- Linq - Using a left join on to a table which may not have records
- System.Linq.IQueryable Error
- Dumping Linq expression output to Console.
- What is the difference between MoreLINQ's DistinctBy and Linq's GroupBy
- Linq where clause "if item is not null, evaluate, otherwise, get all data"
- data not being save with crlf so it's all one line
- how to add items to result of a linq select new command in C#?
- Translate an SQL Query to Linq to Entities
- Unexpected results in Linq query always + 1
- a newbie question on Linq To Sql
- Convert sql query to lambda expression for table with foreign keys
- linq to xml - get rid of blank xmlns
- Sort a Dictionary<int, List<int>> by keys + values inside list
- How to efficiently edit data in a database?
- access an array element inside a LINQ to Entities set
- c# LINQ Distinct() on multi level list
- Using query expression vs Seq modules?
- How to get distinct column value according to a certain column value from datatable?
- LINQ Merging results in rows
- Multiple Grouping with IQueryable and returning a list of objects in C# linq query
- Linq GroupJoin with DefaultIfEmpty
- Linq to entity order by sql