You can use transformers in an anchor that creates XML output, such as
. In the Script, nest the transformer components within the
property of the anchor.
The input of a transformer is the raw output of the anchor, before the anchor inserts the output in a data holder.
For example, suppose you are parsing the following source document:
First name: Ron
Last name: Lehrer
You want to create XML output in
, like this:
To do this, you can configure the
anchors, which retrieve the strings
, with the