Q:what is diference between DTD and SCHEMA inXML.
Ans:
1:)DTD sapports only two data type that is CDATA and PCDATA whereas SCHEMA sapports
many data types called int float,boolean,double date time types.
2:)DTD does not allow to define your own data type whereas SCHEMA does.
3:)DTD does not support XML Namespace whereas SCHEMA support.
4:)DTD document may not be an xml but SCHEMA must be xml.
5:)DTD's may be external and internal as well but SCHEMA must be external always.
6:)DTD can include only one DTD in xml document whereas SCHEMA include multiple XSD's
in xml document.
Ans:
1:)DTD sapports only two data type that is CDATA and PCDATA whereas SCHEMA sapports
many data types called int float,boolean,double date time types.
2:)DTD does not allow to define your own data type whereas SCHEMA does.
3:)DTD does not support XML Namespace whereas SCHEMA support.
4:)DTD document may not be an xml but SCHEMA must be xml.
5:)DTD's may be external and internal as well but SCHEMA must be external always.
6:)DTD can include only one DTD in xml document whereas SCHEMA include multiple XSD's
in xml document.