What is Diffrence Between DTD vs XSD In XML
DTD (Document Type Definition)- DTD stands for Document Type Definition.
- DTDs are derived from SGML syntax.
- DTD doesn't support datatypes.
- DTD doesn't support namespace.
- DTD doesn't define order for child elements.
- DTD is not extensible.
- DTD is not simple to learn.
- DTD provides less control on XML structure.
XSD (XML Schema Definition)
- XSD stands for XML Schema Definition.
- XSDs are written in XML.
- XSD supports datatypes for elements and attributes.
- XSD supports namespace.
- XSD defines order for child elements.
- XSD is extensible.
- XSD is simple to learn because you don't need to learn new language.
- XSD provides more control on XML structure.
Post a Comment