scripts processing the xml trip file