Hello, I am currently having an issue using the XMLRecords extension. I need to generate the following XML:
<customer name="Carl" status="active"> <carList type="Luxury" availability="InStock"> <car brand="BMW" color="Red" /> <car brand="Mazda" color="Blue" /> <car brand="Audi" color="Black" /> </carList> </customer>
In Service Studio, I created the corresponding structures.
The carList structure has the corresponding attributes, and CarDetail is of type RecordList (I also tried creating it as List), but it does not work.
I am using the RecordToXml function.
For convenience, I exposed the transformation in JSON format at this endpoint ../demoXML/rest/testXml/test, but when I run it, it returns the following XML:
<customer name="Carl" status="active"> <carList type="Luxury" availability="InStock" /> </customer>
Does anyone know what might be happening? It's not converting the car Detail list. I'm attaching the test module.
Thank you very much for your help.
Hi German,
I'm not too versed in the inner workings of the current version of XMLRecords, unfortunately.
However, so those that are can give a better answer: did you upgrade the O10 version of XMLRecords (presumably 1.6.2?) to O11, and it didn't work then, or did you upgrade the Platform to O11 and then install the latest version of XMLRecords (1.6.15)?
Hi Kilian, yes, we first upgraded to OS11 and then installed the latest version 1.6.15, but unfortunately, the list generation is not working correctly.
In OS10, I have exactly the same case, with identical structures, and it works correctly.
OSv10
XML records for v10
The final XML is as expected.