Add xml config support