Skip to Content
0
Dec 08, 2008 at 11:51 AM

XPATH condition not executing

92 Views

Hi Experts,

I am stucked with a condition in XPATH which is not executing. I want to use substring function in the Expression Editor. In the source structure field IDTNR at path /ORDERS01/IDOC/E1EDP01/E1EDP19/IDTNR if the field value of IDTNR starts with a D(for eg DADHJI) then I have to block this particular message or else(eg ASHDJKKD) pass for other values. I have tried following ways so far.

(ORDERS01/IDOC/E1EDP01/E1EDP19/IDTNR[(substring(.,0,1) ='D')] EX )

/ORDERS01/IDOC/E1EDP01/E1EDP19/IDTNRhttp://not(starts-with(.,"D"))

substring(ORDERS01/IDOC/E1EDP01/E1EDP19/IDTNR,0,1) = 'D'

And also can some body please expalin what is the meaning of http:// in the second statement as also in thread using-substring-in-the-xpath-expression-for-receiv

Requesting you , please dont forward the links or blogs.

Thanks in Advance.

Sudhir