Reading attribute values from XML documents