Add method to get XML (#5, #7)