add simple factory read xml file