Reworked approach to include support for local xml files too, apart from responses over http.