better xml parsing in Interceptor class