handle XML attributes