parsing attributes should recover from exceptions due to invalid xml