How to specify mandatory fields in documentTypeName ?

When an XML string is created from a flat file using ‘documenttoXMLstring’ service, even empty tags are being included in the XML string. To eliminate this, the help document states the usage of generateRequiredTags as follows:

generateRequiredTags -Flag indicating whether empty tags are to be included in the output document if a mandatory element appears in the document type specified in [FONT=PalatinoLinotype,Italic][SIZE=2][FONT=PalatinoLinotype,Italic][SIZE=2]documentTypeName [/size][/font][/SIZE][/FONT]but does not appear in [FONT=PalatinoLinotype,Italic][SIZE=2][FONT=PalatinoLinotype,Italic][SIZE=2]document[/size][/font][/SIZE][/FONT].

Can somebody please elaborate on the usage of documentTypeName ? I can’t figure out how to mention the mandatory fields in documentTypeName.

Thanks a prior
Rashmi

In Document structure, you can specify the fields are required or not, so when you use generateRequiredTags flag, which specifies whether the required tags should present in output XML File or not.

Hello
Open the document structure you created and click on the element for which you want to as mandatory.In the properties panel fields on the right hand side you can find a field ‘Required’. Set it true

thanks
Anil