fixed checking for xml parser