builder xmltocmake function