For the provided XML content, you can use an expression that adds the content of the <office>
tag to the parsed output.
Your expression might look something like this:
(offices as ({@result} as integer,
office as ({@name} as string,
{@shortname} as string,
$value as string)[]))
Here $value
is used to grab the content of the <office>
tag, which should give you the desired code (for example"ABC01").