XML File Reader Action Agent Example - XMPRO Data Stream Designer

Follow this step-by-step example to configure the XML File Reader Action Agent in the XMPro Data Stream Designer.

Need help with creating your XMPRO Data Streams? Visit https://documentation.xmpro.com or send an email to support@xmpro.com.

Visit https://xmpro.com if you want to learn more about how you can build real-time applications with our No-Code Application Composition Platform.

Transcript

this example demonstrates how to use the

xml file reader agent to read a file

from a supplied path and extract the

values of nodes via xpath expressions

first drag the agent onto the canvas

link the input to the streamed data and

output to the printer

save the data stream and click on the

agent to configure it

add a property with pump id as the

output column and its x path expression

add another property for under

maintenance

add a property for the service date

add another for the manufacturer

add the last one for type

apply the changes

save the data stream

publish it and let's look at the live

data view the event received contains

the xml file path which is red and the

value of the first matched node for each

xpath expression is used for that column

you can download the files below to try

them out yourself

and for more information about this

agent's properties head to the

configuration page thank you

Last updated