Ported XML to XDocument and XElement