Added convenience apply methods in XmlElement object