Tuesday, February 2, 2010

What is XML?

Answer
XML, Extensible Markup Language, is an open, text based markup language that provides structural and semantic information to data. XML is a metalanguage that can be used to create other language. It is used to structure and describe data that can be understood by other applications. Using XML, we can separate the user interface from data.
Features of XML 
XML is a generalized markup language that means one can define his/her own tag sets.
A valid XML document contains rules and is self-describing.
The rules that are found in DTD allow the documents to be validated.

Describe the logical structure of XML.

Answer
XML documents comprise of declaration, elements and comments
XML Declaration
It identifies the version to which XML conforms
Document Type Declaration
It consists of markup code that indicates grammar rules or Document Type Definition (DTD) for the particular class of document.
This statement tells the XML processor that the document is of the class Car that conforms the rules specified in the DTD "cr.dtd".
Document element
The document element contains data of an XML document

0 Comments: