I have to iterate on the result of “Execute XPath” Activity.
The challenge I’m facing is the Execute XPath returns “Object” Datatype.
- How to validate the returned Object has data ? I tried to do ToString but it does not give me any readable text…
- For which datatype I need to cast this to so that I can iterate and get values
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <TestRoot> <Data> <Item>1</Item> <Item>1</Item> <Item>1</Item> <Item>1</Item> </Data> </TestRoot>
Xpath Expression : /TestRoot/Data/Item
I have tested my xml and xpath expression in freeformatter and it works…