Added XML support and doesExist() method

Added XML support and doesExist() method