I am a newbie to XPath and am stuck in a small issue. Following is the sample XML I have.
<test>
<OI>1626353388</OI>
<PL>DL</PL>
<OF>p</OF>
<ele>
<elet>
<tpl>BR</tpl>
<format>1</format>
</elet>
</ele>
</test>
I am trying to get a path by appending few strings:
concat('/app/test/1.0/forms/',/test/ele/elet/tpl,'.xd')
If format
element is available in XML I need to append it with xd
else it should be appended with pd
. I am not sure how to do that.
Can anybody help me with this? Thanks in advance.