Contrast DTDs versus XSDs. What are their similarities and differences? Which is preferred and why ?
Answer Posted / saxena
Document Type Definition (DTD) describes a model or set of rules for an XML document. XML Schema Definition (XSD) also describes the structure of an XML document but XSDs are much more powerful.
The disadvantage with the Document Type Definition is it doesn’t support data types beyond the basic 10 primitive types. It cannot properly define the type of data contained by the tag.
An Xml Schema provides an Object Oriented approach to defining the format of an xml document. The Xml schema support most basic programming types like integer, byte, string, float etc., We can also define complex types of our own which can be used to define a xml document.
Xml Schemas are always preferred over DTDs as a document can be more precisely defined using the XML Schemas because of its rich support for data representation.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a struct in C#?
What is the use of iqueryable in c#?
What is platform independence"?
What is the difference between method overriding and method overloading?
Why array is faster than arraylist in c#?
What is difference between ienumerable and list in c#?
What is .edmx file?
Why do we use inheritance in c#?
Which constructor is called first in c#?
What is the namespcae generally given to the webpage of the .NET Framework ?
What is private protected in c#?
What does console readkey do in c#?
What is the use of tryparse in c#?
Define an assembly in .net?
Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards