Generic XML metadata reader class
Also put attribute values into the metadata hash
simplification