serilizeDataElementsToXML

The following API in the LetterRenderService is used to serialize XML data by setting values of all data elements PHs and Fields. This "Generate Letter PDF" API consumes the serialized XML to render letter:
public String serilizeDataElementsToXML(String ddiDataAsXml,Map<String,Object> phValues,Map<String,Object> fieldValues)
Values of data elements are ddiDataAsXml, phValues and fieldValues.
  • ddiDataAsXml: The DDI data as XML.

  • phValues: map containing the variable name versus its value.

  • fieldValues: map containing the somExpr of Field versus value of the Field.

// Ethnio survey code removed