Define DTD (Document Type definition).
Explain DTD and schema.
XML DTD - August 12, 2008 at 18:00 PM by Amit Satpute
Define DTD (Document Type definition).
Answer
DTD - Document Type Definition defines the legal building blocks of an
XML document.
It defines the document structure with a list of legal elements and attributes.
XML DTD is a rule book that an XML document follows. Once DTD is ready, you can
create number of XML documents following the same rules specified in the DTD.
DTD can be internal or external DTD. The internal DTD is included in the XML
document, while external DTD exists outside the content of the documents.
Explain DTD and schema.
Answer
A DTD provides a list of the elements, attributes, comments, notes,
and entities contained in an XML or HTML document and indicates their
relationship with each other.
The 'DOCTYPE' tells the browser that it is a Document Type Declaration
Some commonly used attribute types are
-
CDATA The value is character data
-
ID The value is a unique id
-
IDREF The value is the id of another element
-
IDREFS The value is a list of other ids
Schema means the organization and the structure of a database.
E.g.: An XML schema is a description of XML document. It is expressed in terms
of constraints on the structure and content of documents.
XML XML DTD - Jan 14, 2009 at 14:00 PM by
Nishant Kumar
Define XML DTD.
XML DTD is a rule book that an XML document follows. Once DTD is ready, you can
create number of XML documents following the same rules specified in the DTD.
DTD can be internal or external DTD. The internal DTD is included in the XML
document, while external DTD exists outside the content of the documents.
|
More XML Links
Answer - The term CDATA is used when you dont want some text
data to be parsed by the XML parser. ..............
What is Untyped XML?
Provide examples for : Create a table with a untype XML column, Insert into an
untyped XML data type column
What is typed XML?
The XML data type comes with five methods. Explain them
Differentiate between Untyped XML and Typed XML.
Explain with an example how to apply defaults constraint to an XML data type
column.
You can add constraints to XML data type columns. Illustrate with an
example.
Answer - XSL is a language for expressing style sheets. An XSL
style sheet is a file that describes the way to display an XML
document...............
Answer - Xquery is a query language that is used to retrieve
data from XML documents...............
|
|