Some corrections in your statement:
XSD file doesn't export the data .. it is used to validate the data.
XSD file can be used to validate XML while importing it .. so as to check if XML file is as per the SCHEMA file. XSD-XML Schema Definition
ps: Normal convention is .. XSD is used on imported data than
exporting ones.. because you know what you are sending .. but you
should be sure enough to accept the valid data that is sent to you by
other system.. (no harm in validating out-going data though)
- XML stands for EXtensible Markup Language
- XML is a markup language
much like HTML (but not HTML)
- XML was designed to carry data, (not to
display data)
- No tags or attributes are predefined. What you define
is your data :)
The purpose of an XML Schema is to define rule-sets for an XML document, just like a DTD.
(its much more advanced than DTD.)
Refer this link [click_here] to know capabilities and limits of XSD