on 06-17-2009 12:09 PM
Hi Experts,
I want to know the XPATH condtion to check if an element does not exist.
I have searched the forum but could not find a relevant discussion.
Please help.
Regards,
Ravi kanth Talagana
EX does not work?
http://help.sap.com/saphelp_nw04/helpdata/en/67/49767669963545a071a190b77a9a23/content.htm
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi kanth Talagana,
count(//myElement) eq 0
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Udo,
Is "eq" a valid XPATH Operator? or should i use "=" ?
I did not find it here:
http://www.w3schools.com/xpath/xpath_operators.asp
Regards,
Ravi Kanth Talagana
Regards,
Ravi Kanth Talagana
Left Operand should be your element on which you need to implement the condition
Middle Operand (Condition column) should be Not Equal
Right Operand should be constant EX
I used this condition in RD to route a file from source to target if some element is not present in the file....not present means not even a blank entry for the element....
Check it and let me know the result.
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.