get xml attribute by name