moved XML elements value into attrs property