XML
Mapper
5min
the mapper action is one of the actions at your disposal to work with xml data mapper enables you to extract a value from an xml string or an xml file the action will be able to query/extract data from an xml input using an xpath expression and save it to a variable mapper action was previously called xml mapper overview the action is used to filter the xml data that we will import into our process for future use input xml string input your xml schema in a process variable of type string input xml file input your xml file in a process variable of type file xpath expression input xpath expression for obtaining the key value(s) for your xml input islist returns true if the xpath expression returns a list, false otherwise; outputs will be set according to this the resulting value returns a value corresponding to the xpath expression the resulting list values returns a list of values corresponding to the xpath expression how to configure the mapper action? https //kb procesio com/regex replace#qd how to 1\ create a process and give it a name 2\ drag the mapper action to the canvas and link it to the other actions 3\ create the variables needed for the configuration of the action, and then add them to the configuration panel 4\ save, validate and run the process 5\ the process will ask for inputs (see values with example purposes below) xmlstring \<?xml version="1 0" encoding="utf 8"?> \<bookstore> \<book> \<title lang="en">harry potter\</title> \<price>29 99\</price> \</book> \<book> \<title lang="en">learning xml\</title> \<price>39 95\</price> \</book> \</bookstore> xpath /bookstore/book\[1]	 6\ click run 7\ click check instance to view the results you will see that it selects the first book element that is the child of the bookstore element, and it is saved in the result variable