HUGE xml parse method