Adding XML parsing and logging.
Adding rest attempt. Not working yet.