find logic for tinyxml