I will appreciate any urgent help please on how to access Element from an XLM document shown below to be used in the values tag.
My XML document generates both the attribute vs element as shown below.
My Problem is I don't know the right dataPath to access its element
<PremiumComputation>\r\n
<RecordID>3</RecordID>\r\n
<TotalSumInsured>1136000000.00</TotalSumInsured>\r\n
</PremiumComputation>
<values>
<value name="TotalSumInsured" dataPath="PolicyData/@TotalSumInsured" binding="Static" required="true"/>
</values>
the above script gives error message :
Mapping XML user-defined value data attribute not found. value=TotalSumInsured, data=PremiumComputation/@TotalSumInsured
Again i tried
dataPath="TotalSumInsured"
dataPath="PremiumComputation/TotalSumInsured"
both gave the error message:
Object reference not set to an instance of an object.
What is the right way to access the path please.
Best regards
Lawrence