we prefer to process XML with XML Tools / Api
in case of only 2 elements are to retrieve and the XML element names are uniqu within the document, A regex approach can be checked.
Otherwise we would implement a custom XML Extractor step (do have the feeling that it not only a few lines within an invoke code) by:
- define the document model as usual
- define the XML Extractor config (e.g. which field will have which XPATH)
- extract the the values, driven by the Document Type and it fields, using the Extractor config
- manipulate / modify the ExtractionResult
just to shortlist some essential building blocks