Compare - XML schema vs. DTD

Using a schema to define the structure, the elements and the attributes of an XML document has many advantages over the DTD document. In a DTD you can have only two types of data, the PCDATA and the CDATA.


_______________________________________________

In a schema you can many types of data starting from the primitive type that you use in the programming languages and to the complex type that the user itself defines.

The primitive types of data include byte, string, and integer, floating point numbers and even country codes and language codes. In a schema you use an OO approach in defining the format which is far more better than the DTD.

Based on the core type of data the developer can build more complex types of data using different operators and modifiers. Such complex data can be used in an XML document.

By using the object oriented approach the user can use inheritance and encapsulation and apply them in creating the document. Other technologies like XQuery, XPath, and XSLT are adopted easily if you are using a schema to define an XML document.




_______________________________________________

FREE Subscription

Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.

Name:
Email:

Note : We never rent, trade, or sell my email lists to
anyone. We assure that your privacy is respected
and protected.

_______________________________________



 

FREE Subscription

Stay Current With the Latest Technology Developments Realted to XML. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.

 

 

Add to My Yahoo!

Visit XML Training Material Guide Homepage

 

 

Copyright - © 2004 - 2017 - All Rights Reserved.