fixed xml parser
fixed casting from void* to int*