fixed uncommitted change to api.rb for process_xml routine, also seems to be new printing APi docs