Questions and answers on XML

aaalash 3:54 pm

Jan 17 • education, Engineering, Engineering, Engineering Notes, Engineering Sample Papers, GATE, Gate, GATE Syllabus, General, Resources • 4835 Views • 6 Comments on Questions and answers on XML

Extensible Markup Language abbreviated is the set of different rules formulated for the encoding a document in various formats which are both Human as well as Machine Readable. XML was basically designed to only carry data. It is unable to display the data as done by the HTML. It is self-descriptive and only focus on what data is rather than what data look like. It is different from HTML. It  is a software as well as hardware independent tool which is used to carry information and data. Lets have a look at the type of question being asked at various place may it be a technical interview question or a subject theory paper-

XML Interview Questions

Interview Questions

Questions and answers on –

Q.1 What is XML?

Ans. XML is the Extensible Markup Language.It improves the functionality of the web by letting you identify your information in a more accurate,flexible and adaptable way.It is extensible because it is not a fixed format like HTML. Instead,It is actually a meta language-a language for describing other languages,which lets you design your own markup languages for limitless different types of documents.It  can do this because it’s written in SGML,the international standard meta language for text document markup.

Q.2 What is markup language?

Ans. A markup language is a set of words and symbols for describing the identity of pieces of a document(for example ‘this is a paragraph’,’this is heading’ etc).Programs can use this with a style sheet to create output for screen,print,audio,video,braille etc.Some markup languages only describe appearances but this method can only be used for display,and is not normally re-usable for anything else.

Q.3 Where should I use XML?

Ans. Its goal is to enable generic SGML to be served,received and processed on the Web in the way that is now possible with HTML.It has been designed for ease of implementation and for interoperability with both SGML and HTML.

Q.4 Where is XML such an important development?

Ans. It removes two constraints which were holding back web developments :
a) Dependence on a single,inflexible document type(HTML) which was being much abused for tasks it was never designed for.
b) the complexity of full SGML,whose syntax allows many powerful but hard to program options.
The allows the flexible development of user-defined document types.

Q.5 Describe the differences between XML and HTML.

Ans. Its amazing how many developers claim to be proficient programming with XML,yet do not understand the basic difference between XML and HTML.Anyone with a fundamental grasp of XML should be able describe of the main differences outlined in the table below.



user definable tags

defined set of tags designed for web display

Content Driven

Format Driven

End tags required for well-formed documents

End tags not required

Quotes required around

Quotes not required

Slash required in empty tags

Slash not required

Q.6 Who is responsible for XML?

Ans. XML is a project of the World Wide Web Construction(W3C), and the development of the specification is supervised by working Group.A Special Interest Group of co-opted contributors and experts from various fields contributed comments and reviews by email.It is a public format:it is not a proprietary development of any company,although the membership of the WG and the SIG represented companies as well as research and academic institutions.The v1.0 specification was accepted by the W3C as a Recommendation on Feb 10,1998.

Q.7 Does XML replaces HTML?

Ans. No,itself does not replace HTML.Instead,it provides an alternative which allows you to define your own set of markup elements.HTML is expected to remain in common use for some time to come,and the current version of HTML is in syntax.It is designed to make the writing of DTDs much simpler than with full SGML.

click here to join our gate whatsapp group get 50% discount on ebooks of notes at onlinekhanmarket & get 20% discount on studymaterial.oureducation on 1st purchase

Q.8 Why not just carry on extending HTML?

Ans. HTML was already overburdened with dozens of interesting but incompatible inventions from different manufacturers,because it provide only one way of describing your information.

Q.9 What is DOM and how does it relate to XML?

Ans. The document Object Model(DOM) is an interface specification maintained by the W3C DOM work group that defines an application independent mechanism to access,parse,or update XML data.In simple terms it is hierarchical model that allows developer that has worked extensivly with XML should be able to discuss the concept and use of DOM objects freely.

Group Discussion

click here to join our gate telegram group get 50% discount on ebooks of notes at onlinekhanmarket & get 20% discount on studymaterial.oureducation on 1st purchase

Q.10 What is SOAP and how does it relates to XML?

Ans. The Simple Object Access Protocol(SOAP) uses XML to define a protocol for the exchange of information in distributed computing environments.SOAP consists of three components an envelope,a set of encoding rules and a convention for representing remote procedure calls.

Download the Questions and Answers  in Pdf QUESTIONS AND ANSWERS ON XML pdf

Get any assistance from us, write what you need in the comment section below the article.

Related Articles-
AJAX (Asynchronous Javascript and XML)
Important Questions about ASP.NET with Answers

6 Responses to Questions and answers on XML

  1. Anonymous says:

Leave a Reply

Your email address will not be published.

Related Posts

« »

WHATSAPP #Name/City/Engg/Stream To 8130802212 for Engineering Coaching Updates

Please confirm link on your mail . once you click on link , your queries will be answered by our expert. This is to confirm that you are human

Thank You