refactor xml parser, uses faster string to double conversion