The "node" parameter could be TiXmlNode (also better matches the parameter name ;-) ) since you don't use any of the TiXmlElement specific methods.