Does anyone know what Regex to use to identify xml document in TN
I am recieving a xml file in TN in which tag looks like this:
US05 and I am using the following regex both seem to be working when the tag exists in the data and correct document is identified.
/fxEnvelope[0]/body[0]/TenderResponse[0]/TenderInfo[0]/ShippingFacility[regex(“US05|US10|CA01”)] and
/fxEnvelope[0]/body[0]/TenderResponse[0]/TenderInfo[0]/ShippingFacility[regex(“^”)]
I need to know the opposite of this when this whole tag is not present in the data at all:
I have tried the ones listed below and none of them seem to be working, I can’t get the correct document to be identified, I keep getting the error message “No Document exist…”
/fxEnvelope[0]/body[0]/TenderResponse[0]/TenderInfo[0]/ShippingFacility[regex(“^$”)]
/fxEnvelope[0]/body[0]/TenderResponse[0]/TenderInfo[0]/ShippingFacility[regex(“!=^”)]
Anyone faced this problem in past???