Top "Linq-to-xml" questions

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

LINQ to read XML

I got this XML file: <root> <level1 name="A"> <level2 name="A1" /> <level2 …

c# xml linq linq-to-xml
Uses for the '&quot;' entity in HTML

I am revising some XHTML files authored by another party. As part of this effort, I am doing some bulk …

html xhtml escaping linq-to-xml html-entities
Query an XDocument for elements by name at any depth

I have an XDocument object. I want to query for elements with a particular name at any depth using LINQ. …

c# .net xml linq linq-to-xml
How to get a json string from url?

I'm switching my code form XML to JSON. But I can't find how to get a JSON string from a …

c# json facebook linq-to-xml webclient
XDocument or XmlDocument

I am now learning XmlDocument but I've just ran into XDocument and when I try to search the difference or …

c# xml xmldocument linq-to-xml
Finding element in XDocument?

I have a simple XML <AllBands> <Band> <Beatles ID="1234" started="1962">greatest Band<![CDATA[…

c# .net xml linq-to-xml
Populate XDocument from String

I'm working on a little something and I am trying to figure out whether I can load an XDocument from …

c# xml c#-3.0 linq-to-xml
How to change XML Attribute

How can I change an attribute of an element in an XML file, using C#?

c# xml linq-to-xml xmldocument
How to Get XML Node from XDocument

How to Get an XML Element from XDocument using LINQ ? Suppose I have an XDocument Named XMLDoc which is shown …

c# .net linq linq-to-xml
Converting XDocument to XmlDocument and vice versa

It's a very simple problem that I have. I use XDocument to generate an XML file. I then want to …

c# xml linq-to-xml