Better handle date parsing when xml has attributes.