an as3 utility to parse xml into a type object