slight fix to xmltemplate.h