[XML Records] XML with an attribute with multiple elements (value)

Forge Component
(41)
Published on 27 May by João Melo
41 votes
Published on 27 May by João Melo

Hi,

How to handle XML attribute with multiple elements when using XMLToRecordList, such as below

<Action>N</Action>
<licenceFilename>diploma.pdf</licenceFilename>
<licenceFilename>certificate.pdf</licenceFilename>

Current licenceFilename type is set to text and only getting the first value (diploma.pdf) and when I tried to change it to Text List  or Text Record List an error is encountered


Thank you.

Solution

The sample oml of Ricardo Silva from this post solved this.

https://www.outsystems.com/forums/discussion/17374/xml-records-xml-to-recordlist/

Thank you.

Solution

I'll add this to the FAQ on the demo page as I've seen this come up a few times - thank you for investigating and for leaving a component review, Edwin!