38
Views
1
Comments
Solved
[XML Records] RecordToXml attributes configuration
xml-records
Service icon
Forge asset by Afonso Carvalho
Application Type
Service

Hi, 

I'm attempting to utilize RecordToXml with attributes, but I'm facing difficulties in configuring the AttributeXmlConfig correctly.

Could someone please share an example demonstrating the proper configuration for AttributeXmlConfig?


The expected XML output is outlined in the following snippet:

 <Application attribute1="" attributeN=""> 

    <Request function1="" functionN=""> Value </Request> 

</Application>


What I get is:

<Application> 

<Request> Value </Request>

</Application>


Thank you

2024-03-14 12-00-57
Carlos Costa
Solution

Hi Ricardo,
For what you are trying to achieve you need a structure similar to this one:

The names of the Attributes need to start with "Attr_" because that's the prefix for attributes

And then the output will be 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.