Skip to content

Instantly share code, notes, and snippets.

@BenjaminAbt
Created January 3, 2016 15:23
Show Gist options
  • Save BenjaminAbt/e999ea7a63db4d77dbb3 to your computer and use it in GitHub Desktop.
Save BenjaminAbt/e999ea7a63db4d77dbb3 to your computer and use it in GitHub Desktop.
C# XML Tutorial - XDocument Create Simple Document
XDocument doc = new XDocument(
new XElement( "XMLRootName",
new XAttribute( "demo", "SchwabenCode" ),
new XElement( "KindElement", "Dies ist ein BeispielText" )));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment