Top "Linq-to-xml" questions

LINQ-to-XML provides a SQL-like query experience for navigating, parsing, and aggregating data stored in XML documents.

Use Linq to Xml with Xml namespaces

I have this code : /*string theXml = @"<Response xmlns=""http://myvalue.com""><Result xmlns:a=""http://schemas.datacontract.…

c# linq-to-xml xml-namespaces
how to add XElement in specific location in XML Document

I want to create an XML document like this: I want to create it from scratch using code and LINQ-to-XML. …

c# linq linq-to-xml
How to get attribute in the XDocument object

I have this xml <config> <audio first="true" second="false" third="true" /> </config> I …

c# xml linq linq-to-xml
Linq to XML - update/alter the nodes of an XML Document

I've got 2 Questions: 1. I've sarted working around with Linq to XML and i'm wondering if it is possible to change …

c# xml linq linq-to-xml
xml element name with colon

I'm working against a 3rd party xml api. They have defined a required xml structure similar to the following. <…

.net xml namespaces linq-to-xml
Force XDocument to write to String with UTF-8 encoding

I want to be able to write XML to a String with the declaration and with UTF-8 encoding. This seems …

c# xml utf-8 linq-to-xml
How does one test a file to see if it's a valid XML file before loading it with XDocument.Load()?

I'm loading an XML document in my C# application with the following: XDocument xd1 = new XDocument(); xd1 = XDocument.Load(myfile); …

c# xml linq-to-xml
What does the "New ... With" syntax do in VB Linq?

What (if any) is the difference between the results of the following two versions of this VB Linq query? ' …

vb.net linq linq-to-xml
Convert XDocument to Stream

How do I convert the XML in an XDocument to a MemoryStream, without saving anything to disk?

c# .net xml linq-to-xml
XDocument get XML element by the value of its name attribute

I have an XML result like this <response> <lst name="responseHeader"> <int name="status">0&…

c# xml linq-to-xml