Including XML tags

I am using 4.6 and I am wondering if there is a trick to convert a document to an XML file to include empty XML tags for data that is not present in the source?

I bring in a document that goes against a record reference and then is turned into an XML file. I want to see the XML layout even if there is no data for the fields. Thanks.

Hi eperry,

Did u tried DocumentToXMLString ,give the documentTypeName& enable genwrateRequiredTags(In 6.1 we do like this )



Thank you very much Kiran for the advice, that gets me going in a direction.

The service pub.xml:documentToXMLString used to be called pub.web:recordToDocument. See the 4.6 Built In Services Manual for details (parameters were recordName and generateRequiredTags).