Added more helper methods to XmlElement.