LINQ-to-XML provides a SQL-like query experience for navigating, parsing, and aggregating data stored in XML documents.
// Remove element with ID of 1 var userIds = from user in document.Descendants("Id") where user.Value == "1" select user; userIds.Remove(); …
c# .net xml linq-to-xmlI want to make pass this test. What should I use instead of Add method? [TestMethod] public void AddContentWithoutEncoding() { var …
c# .net xml linq-to-xml xelementUnit testing my serialization code I found one failed because I had attributes listed in a different order (I'm just …
c# xml linq-to-xmlI've looked at Nodes() vs DescendantNodes() usages? to see the difference between .Nodes() and .DescendantNodes() but what is the difference …
c# xml linq-to-xmlNewbie with XDocuments and Linq, please suggest a solution to retrieve the data from a particular tag in the xml …
c# xml linq-to-xmlTo load XML files with arbitrary encoding I have the following code: Encoding encoding; using (var reader = new XmlTextReader(filepath)) { …
encoding linq-to-xml xmlreader xelementI'm trying to bind a Silverlight DataGrid to the results of a WCF service call. I was not seeing the …
silverlight wcf-binding linq-to-xmlThis works fine: XDocument xdoc = new XDocument( new XDeclaration("1.1", "UTF-8", "yes"), new XProcessingInstruction("foo", "bar"), new XElement("test")); However if …
c# .net linq-to-xmlI have an XML document that looks like this: <kmsg xmlns="http://url1" xmlns:env="url1" xmlns:xsi="http://…
c# xpath linq-to-xml xml-namespacesI have the following dictionary in a method: var nmDict = xelem.Descendants(plantNS + "Month").ToDictionary( k => new Tuple<…
c# linq-to-xml idictionary