B2b record with empty values to xml

is there any way that i can get the xml format of the b2b record whose values are empty. when i do record to doc, doc to string with empty values for the record, the final xml doesn’t have the elements of the record that are empty.


Yes,its possible…

Before passing record structure to recordToDocument,just initialize your record (no need each field,just root element) and also pass the recordName param.

It should work out and tested as well.