XML (rule)
Settings
(1) Test setting: See section Testing a file (rule).
(2) Root node: The root element from which on the XML file is parsed. Important note: The XML element must be specified in XPath notation. Simply always use the notation shown in the screenshot. This also applies to (3), (4) and (5). Example: "//message".
(3) Split node: If this element occurs multiple times, the XML file is split each time this element occurs. Example : "//record".
(4) Sender element: Here you must specify any element of the XML file whose value is parsed as sending partner. Example : "//sender".
(5) Recipient element: Here you must specify any element of the XML file whose value is parsed as receiving partner. Example : "//recipient".
Example file
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
data
>
<
message
>
<
sender
>CHANNEL001</
sender
>
<
recipient
>CHANNEL002</
recipient
>
<
record
>
<
any
>something...</
any
>
</
record
>
<
record
>
<
any
>something else...</
any
>
</
record
>
</
message
>
</
data
>
Split
See (3).
Important note: Please note that the recipient is read from the file only once (i.e. the first value that is found). Both splits are then sent to this one recipient!