#parse xml_line and create heading records Set Variable [ $ID_Collection; Value:Get(ScriptParameter) ] Freeze Window Set Error Capture [ On ] #delete existing heading records Perform Script [ “Delete_Heading”; Parameter: $ID_Collection ] Go to Layout [ “XML_Line” (XML_Line) ] #select fk_Collection = $ID_Collection Perform Find [ Specified Find Requests: Find Records; Criteria: XML_Line::fk_Collection: “=$ID_Collection” ] [ Restore ] If [ Get(FoundCount) > 0 ] Sort Records by Field [ Ascending; XML_Line::Order ] Else Exit Script [ ] End If Set Variable [ $order; Value:1 ] Loop #read time // Set Variable [ $StartRead; Value:Get(CurrentTimeUTCMilliseconds) ] #document title If [ Left ( XML_Line::Line ; 5 ) = "