score:2
Accepted answer
var xml = "<?xml version='1.0' encoding='Windows-1252' ?><TEST>Login inexistant</TEST>";
var result = XElement.Parse(xml);
var value = result.Value;
Source: stackoverflow.com
Related Query
- C# Parsing simple XML file with LINQ
- Simple XML parsing with LINQ
- Parsing SOAP response with LINQ to XML - how to get nested nodes under parent?
- Fragmented XML string parsing with Linq
- Parsing XML Data with LINQ
- Amazon Marketplace XML parsing with LINQ
- Parsing XML with Linq with multiple descendants
- Parsing XML with LINQ in C#
- Parsing XML with pairs of elements using XDocument and LINQ
- Parsing XML with values containing angle brackets, using Linq
- XML Parsing with linq
- Parsing google feed with linq to xml
- C# parsing xml document with LINQ where there are varying number of duplicate elements
- LINQ to XML: parsing simple XML entry
- Simple Linq to Xml Queries setting Properties with Elements (instead of IEnumerable)
- Parsing XML with LINQ
- XML Parsing with LINQ with deep nested loops
- Parsing Complex XML with C# LINQ
- Parsing xml file with linq
- List is empty after parsing XML with LinQ
- I Need Some Help Parsing XML with Linq
- Parsing XML problem with LINQ
- Not Parsing XML Data Correctly with Linq to XML
- XML Parsing With Linq
- parsing a xml file with linq
- Parsing XML file with LINQ getting wrong information
- XML Parsing using LINQ to fetch attribute along with contents
- C# XML parsing with LINQ storing directly to a struct?
- Parsing IIS configuration xml doc with linq to xml
- C# LINQ and XML Parsing with Separate Sections
More Query from same tag
- Create a list of sequential numbers excluding one number
- The argument to DbIsNullExpression must refer to a primitive or reference type
- How to convert this SQL query to Linq
- TDD with Linq Any() and All()
- c# linq MethodCallExpression for Sum( DataRow) used for .GroupedBy().Select()
- Remove doubles from structs array
- How to implement a Linq NullCheck Expression?
- Linq help - Sql trace returns result, but datacontext returning null
- Getting data from XML via LINQ and displaying it on a View?
- NHibernate Second Level Cache With NHibernate Linq Provider 1.0
- wrong expression result linq
- LinqToXml: reorder user nodes based on mangerial hierarchy
- Using Group Join return Key Value Pair
- Use nested generics without a lot of code
- Use Linq.Any() inside a Linq.Where() on CosmosDb
- Linq more condition on the same row
- Ordering a List of Objects by 'Sector %' then everything else in Order
- SQL query in linq pseudocode
- Apply multiple order by in linq
- This operation would create an incorrectly structured document
- How to use OrderBy in Linq
- Necessary files to deploy for website using linq
- NEST ElasticSearch for Did you mean feature
- How do I get the highest currently used ID number in a table with LINQ?
- Lambda expression for sorting list of collection
- Ascending sort date
- Most Efficient Way of Combining or Joining Objects Read From Separate XML Files
- How can I refactor this IQueryable<T> Repository Method?
- Declaration of list of anonymous types
- Negating an Expression