replace res-auto when loading xml file