Home Page › Forums › BizTalk 2004 – BizTalk 2010 › xpath expression inside a loop to pull records/nodes out › Re: xpath expression inside a loop to pull records/nodes out
But I need the whole Encounter node not just the EncounterReferenceNumber. I tried removing the last nodename and using this below but it still will not work It just keeps pulling out my first node even though my strEncounterIncrement is indeed incrementing and the xpath works when I put it in xmlspy xpath validator…
MsgEncounterAdd = xpath(MsgXMLResponse, "/*[local-name()='EncounterValidationResponse']/*[local-name()='Transactions']/*[local-name()='Transaction']/*[local-name()='Encounters']/*[local-name()='Encounter'][" + strEncounterIncrement + "]);
So I need this whole node pulled out of when strEncounterIncrement = 2…
<Encounter Status="Rejected"> <IdentifierType>SubmitterClaimIdentifier</IdentifierType> <EncounterReferenceNumber>xxxxx14020702597748</EncounterReferenceNumber> <EncounterId xsi:nil="true"/> </Encounter>