With XML mode, you will have more capabilities to define what kind of XML document is valid. They have several advantages compared to DTD:
XML mode uses XML syntax. In other words, the XML mode is an XML document. This means that you can work like any other document. For example, you can write an XSLT style sheet that converts the XML schema into a web form with automatically generated JavaScript code, where JavaScript code can verify the data you entered.
XML mode supports data types. Although DTD does support data types, it is obvious that these data types are developed from the perspective of publishing. The XML mode supports all raw data types in the DTD (such as types such as identification and identity reference). They also support integers, floating point, date, time, string, URL, and other data types for data processing and verification.
XML mode is scalable. In addition to the data types defined in the XML schema specification, you can also create your own data type and can send new data types based on other data types.
The XML model has a stronger expression ability. For example, you can define any