XAttribute , XComment , XDeclaration , XDocument , XElement , XName / XNamespace Creating XML : XElement inventory = new XElement ( "Inventory", new Xelement ( "Car", new XAttribute("ID", "1"), ...