Question
How to use torecord() to convert XML with nested tags to a CDT
I would like to convert the following XML to a CDT. I have no problem capturing the values in Key, LastModified, and Size using torecord(). However, I do not know how to create a field in my CDT to capture DisplayName using torecord() since it is nested in Owner. Please let me the best way to get the data in this XML.
<Result>
<Key>Mock_Doc.pdf</Key>
<LastModified>2023-10-06T02:19:06.000Z</LastModified>
<Size>38864</Size>
<Owner>
<DisplayName>Tracy</DisplayName>
</Owner>
</Result>
