Selecting Root Node in Context activities

Root selection is not available in Context Upload\Download activity. The ideal approach for achieving this thing is to use Context Schema (on target side) of the Data Mapper. 

But below steps would help you in achieving this thing in the context Download/Upload GUI itself. You can manually enter the xPath as per the desired root node. Please follow below steps for achieving this thing: 

  1. Please find the attached example.xsd and create a XML schema with the help of this XSD.

  2. There will be two root nodes in the schema i.e. RootNode1 & RootNode2.

  3. Now create a new ContextUpload/ContextDownload activity and use this newly created schema in this activity.

  4. RootNode1 will be selected automatically while mapping context variable.

  5. Map the element with variable by selecting the element and xpath of that element would appear in above box. In this case xpath is: “/RootNode1/ShipmentTo/name”.(Refer below screenshot for more info) screenshot.jpg

  6. Provide variable name in the variable name field we have taken it Var2 for example.

  7. If you want to select the element “price” in RootNode2 then manually enter the xpath as “/RootNode2/item/price” in “Mapping” for box.

  8. Click on Apply and after that click on Add Variable. (Refer below screenshot for more details) screenshot1.jpg
    9. Save this ContextUpload activity and you can use this variable further in Process Flow.

Have more questions? Submit a request

0 Comments

Article is closed for comments.