I think this is a muti part problem, But I have at least one of the parts down.
	first I need to analyze my OBX segements, then I need to consolidate the OBX-5 segments into one OBX-5 field. This part i have.
	Now I need to remove all OBX segments after OBX[1].
	from obx[1] to obx[*] is the end of the file. I tried to do some HPath to get all OBX segments after the first but I am not successfull.
	
	Secondly I need to remove said segments from the message.
	 
	Since I was unable to succesfully HPath the group I need, I decided to go about it this way:
	 
	
		var obx = message.getAllNodes('OBX');
	
		 
	
		for (var i = 0; i < obx.length; i++) {
	
		   message.removeAllNodes('OBX[' + i + ']');
	
		}
	 
	this however removes every odd OBX segment.
	 
	 
	So the question is as stands:
	1. How can i use HPath to get the gorup i am looking for
	2. how can I remove repeatign segments after the first?