Inverting Numbers in XML Data

Use the invert operation to create a reciprocal of a number. For example, if you received the number 42 in an element, assigning this operation changes the number to 1/42.

To invert number in XML data:

  1. Access the Business Connect XML mapping utility.

  2. Right-click a transaction in the Trading Partner Tree and select Edit Transaction Map to display the transaction map.

  3. In the Target XML column of either the received map or the reply/sent map, right-click the element to modify and select Modify Mapping to display the XML Mapping Conversion Editor dialog box.

If the element you select has a source element mapped to it, the source element displays in the Operation Stack field. If the element is not mapped, the Operation Stack field is blank.

  1. From the Operations field, double-click Invert to add it to the Operation Stack field.

  2. If necessary, move the operation to the correct place in the operation stack.

Typically, the invert operation falls after the data you want to invert.

  1. Add additional sources and operations, as necessary.

  2. Click OK to return to the mapping utility main window.

  3. From the File menu, select Save Transaction Map to save the map.

See Also:

Modifying Incoming and Outgoing XML Data Overview