I have an xml file and using spath for it.
My xml is having a tag like:
<messages>
<name>test1</name>
<message-a>
<cust-id>cust-1</cust-id>
<part-a>name-1</part-a>
<part-b>name-2</part-b>
</message-a>
<message-b>
<cust-id>cust-2</cust-id>
<part-a>name-1</part-a>
<part-b>name-2</part-b>
</message-b>
<messages>
I want to use a if condition in both input and path fields of spath
On the face of it, I don't think what you are asking for is possible. Perhaps if you could explain what it is you are trying to achieve e.g. what are you trying to extract from the XML, someone may be able to assist you more readily.