Changed to XDocument.