Hi,
I have an XML document (see example below) that I would like to map to a record structure. I’ve tried doing pub.web:stringToDocument (convert XML to node) and then pub.web:documentToRecord (convert node to record).
It seems that only the last <member> element (i.e. name = “grade”) is mapped onto the record but not the other <member> elements (where name == “studentId”, “subjectId”, “subjectName”, “score”). Any clues how to resolve this problem?
<?xml version=‘1.0’?>
<methodResponse>
<params>
<param>
<value><array><data>
<value><struct>
<member>
<name>studentId</name>
<value><string>S200208</string></value>
</member>
<member>
<name>subjectId</name>
<value><int>500</int></value>
</member>
<member>
<name>subjectName</name>
<value><string>HISTORY</string></value>
</member>
<member>
<name>score</name>
<value><double>85.0</double></value>
</member>
<member>
<name>grade</name>
<value><string>A+</string></value>
</member>
</struct></value>
</data></array></value>
</param>
</params>
</methodResponse>
regards…
Victor
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB