fixed is_int check for xml parser

is_int is not usefull and is_numeric catches too many cases.
so we have to switch to regex here, meh.