want to do a xml to cpp function