Linebreak issue in .csv file

Can someone explain the difference between xsd vs dtd. What difference does it make which one to use to create IDOC schema


DTD is used for defining the elements, attributes, entities and Entities that can be referenced by an XML.

XSD is used to define the structure of an XML with more features.

The biggest advantage of using an XSD over DTD is that you can specify all your validation rules in an XSD and the parser can check the same for you before the actual application that needs the data gets it.