added print function for XmlTree