Editing questions so that they change dramatically makes life difficult for responders and users alike.
Firstly edits are not transmitted by email, secondly future users are confused when the answer given bears little relation to the question.
Edits are for small changes to responses of when some additional information can be added before a response is made.
That over I don't see the problem.
I gave you a generic solution that copies all content and modifies the ArrayElements.
You just have to changethe param arrayItemToRemove to whatever is the value of the elements you don't need, presumably:
HCF=14%java.lang.String|HcfProtocolTypeTable={hcfP rotocolTypeIndex=1%java.lang.Integer}:hcf.HcfProto colTypeTable__6_0
You can also write another template to match ArrayItem's that you want to alter, I'm sorry but I'm going dizzy just trying to read your XML, never mind understand the logic for deciding which elements need singling out.
--
Joe (
Microsoft MVP - XML)