Compare DTD with schema in XMLAn XML document can be validated against a schema or a DTD. The schema or the DTD defines how the elements in the XML document should be organized within the XML document. Some discussion for dissertation examples show how to do it in a correct way and not sacrifice important pieces of information. If you compare the DTD with the Schema, the schema has more advantages over DTD. So it is better to use a schema in the place of a DTD. A DTD can have two types of data in it, namely the CDATA and the PCDATA. The CDATA is not parsed by the parser whereas the PCDATA is parsed. In a schema you can have primitive data types like you have used in programming. String, integer, floating point numbers and even data types like country codes and languages can be used if you are using a schema. Since most of the latest technologies like web services, and XSLT are based on the schema, it is wise to adopt the schema instead of the DTD. Apart from the primitive data types you use, you can also create custom data types based on the primitive data types according to your requirements.
|
|
||
|
|||
“Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.”
Copyright - © 2004 - 2019 - All Rights Reserved.