Added ability to set XML