add res from xml