XMLNode iterator

Hi,

In the XMLNode Iterator, i gave xml file path.  and in the xpath i gave /ResultSummary/Counters/total.  And in the variable to set field i gave my field to contain the value which read from the xml file.  But i am getting nothing.  Always it is zero.  Attaching my xml file

 I came to know the action script for Read XML value to a variable.  But do not know how to use it.  Sorry for asking basic questions.

Please help me

T5.xml (10.641 KB)

Hi Lakshmi,

I've attached an example FinalBuilder project which will read the 'total' attribute value from the 'Counters' node.

Let me know if you need any more help. XmlExample.fbz6 (2.215 KB)

thank you.  It is working. 

Hi,

Now i want to display a number.  When i added two values say 2+4, i want it to display 6.  but it is displaying as 2+4.  Attaching the project.  Please do let me know.

Hi Lakshmi,

You'll need to use the 'Simple Maths' action that was added in FinalBuilder 6.2 https://www.finalbuilder.com/download.aspx . Attached is the project with the 'Set Variable' replaced with the 'Simple Maths' action.

Regards, 
Paul.