Prepare XML reading