Contrast DTDs versus XSDs. What are their similarities and differences? Which is preferred and why ?
Answer / 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 |
What is array c#?
What is a decimal c#?
What is whitespace in c#?
What is the function of .IsDescendent()?
I wish to create a windows application to perform a similar function as that of the "Search" which is provided to look for related files and folders in the System.. What steps must i follow??
What is an array of arrays called?
Can a dictionary have the same key?
Why do we use public static void main in c#?
Why it's said that writing into .NET Application Configuration Files is a Bad Idea?
What is activator c#?
What is the difference between System.String and System.StringBuilder classes?
What is hashtable in c# with example?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)