Add some methods for interoperability of XElement.