Return to Snippet

Revision: 49319
at July 19, 2011 22:23 by danfsmith


Initial Code
var loginQuery = from results in xdoc.Descendants("IODATA")
                                select new
                                {
                                    Name =                results.Element("USER").Attribute("fullname").Value,
                                    ReturnedLoginGuid = results.Element("LOGIN").Attribute("guid").Value,
                                    ReturnedProjects = results.Element("USER").Element("LASTMODULES").Descendants("MODULE")
                                };

Initial URL


Initial Description


Initial Title
LINQ to XML - Query multiple elements and attributes

Initial Tags
xml

Initial Language
C#