Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

xpath add a new instance of a node

Avatar

Level 2

Hi,

We have a process that will convert a lot of documents to PDF/A and for each document we will update a xml-variable

with some data using Set Value -

<convert>

    <result>

        <filename>test.docx</filename>

        <status>-1</status>

        <errorcode>1234</errorcode>

    </result>

</convert>

is is possible to use a xpath-expression to add a new instance of a node (result) in Set Value in Workbench for the next documents?

The xml-variable is using a xsd with result-node set to maxOccurs = unbounded (<xs:element name="result" maxOccurs="unbounded">)

Any ideas?

regards

Tommy

0 Replies