Added XDocument extension methods.