What is the difference between Schema and DTD?
Ans:
A DTD is:
The XML Document Type Declaration contains or points to markup declarations that provide a grammar for a class of documents. This grammar is known as a document type definition or DTD.
The DTD can point to an external subset containing markup declarations, or can contain the markup declarations directly in an internal subset, or can even do both.
A Schema is:
XML Schemas express shared vocabularies and allow machines to carry out rules made by people. They provide a means for defining the structure, content and semantics of XML documents.
In summary, schemas are a richer and more powerful of describing information than what is possible with DTDs.
What are the steps to transform XML into HTML using XSL?
Ans: XSLT - a language for transforming XML documents
XSLT is used to transform an XML document into another XML document, or another type of document that is recognized by a browser, like HTML and XHTML. Normally XSLT does this by transforming each XML element into an (X)HTML element.
What is the difference between XML and HTML?
Ans:
1.HTML is presentaton language where as XML is not either a programing language or a presentation language. It is used to transfer data between applications and databases.
2.HTML is not case-sensitive where as XML is case-sensitive.
3.In XML we can define our own tags as it is not possible in HTML.
4.In XML it is mandatory to close each and every tag where as in HTML it is not required.
5.XML describes the data where as HTML only defines the data.
- Coming later ....
-
Technical skills turns into complexity and creativity turns into simplicity.
26 May 2009
XML Interview Questions
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment