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
SOLVED

Assigning to list of xml?

Avatar

Level 3

How do you assign to a variable of type list<XML>? The only information I find on lists is how to access the data. Some examples would be nice. 🙂

1 Accepted Solution

Avatar

Correct answer by
Level 7
Hi, I had a quick go and couldn't get this to work. Are you able to use a map instead of list? They can be assigned to something like variable[@id="process variable"] I've used this inside a loop before to get a map of documents, might work for you to.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 7
Hi, I had a quick go and couldn't get this to work. Are you able to use a map instead of list? They can be assigned to something like variable[@id="process variable"] I've used this inside a loop before to get a map of documents, might work for you to.

Avatar

Level 3

Thanks. I didn't Think about that. I'll try that later. For now I managed to rearange so that I don't need the list, and use the source document to pull data from.

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now