Added support for testing xml