Added XML reading to Context