Added last_xml method

This pull includes pull7. I'm not sure if that is the right thing to do or not, but since the library doesn't work at all without it, I'm hoping that will be fine.