Add function to class XmlNode