Add write feature to xml attribute