Switched to XDocument