Publishing XML in file generating additional tag elements

Document ID : KB000092922
Last Modified Date : 25/04/2018
Show Technical Document Details
Issue:
When I use Generator to publish XML file, I could see xml file generated with an additional tag element "<ShredderDocuments>" at root level. Is there any option to generate file similar to the one which we registered.
Resolution:
(ShredderDocuments) tag appears when we are trying to publish on to single file and this is done so that when multiple xmls are published to single file then new file still remain at valid XML document. To get away with this problem please select “Publish hierarchy into multiple files” while publishing to xml.