Create XDocument with XDeclaration and XElement