change prototype of xml module