• +91 9723535972
  • info@interviewmaterial.com

XML Interview Questions and Answers

XML Interview Questions and Answers

Question - 41 : - What is XML Element?

Answer - 41 : -

An XML document contains XML Elements, and it starts from an element’s start tag to end tag. It can contain:

• Other elements within main element

• An Attribute

• text

Question - 42 : - What are the basic rules while writing XML?

Answer - 42 : -

These are the basic rules while writing XML:

• All XML should have a root element

• All tags should be closed

• XML tags are case sensitive

• All tags should be nested properly

• Tag names cannot contain spaces

• Attribute value should appear within quotes

• White space is preserved

Question - 43 : - Why XML has been used for development?

Answer - 43 : -

XML is used for development for following reasons:

• Used for Database driven websites

• Used to store data for e-commerce websites

• Used to transport and store data on internet

• XML is used for database and flat files

• Generate dynamic content by applying different style sheets

Question - 44 : - Can I execute a XML?

Answer - 44 : -

No, we cannot execute XML, and it is not a programming language to execute. It is just a markup language to represent the data.

Question - 45 : - What are the special characters used in XML?

Answer - 45 : -

<, > and & are the special characters used in XML. Because these characters are used for making tags.

Question - 46 : - What software is available for XML?

Answer - 46 : -

There are thousands of programs available for XML and updated list will be present in http://xml.coverpages.org.

Question - 47 : - Whether graphics can be used in XML? If so, How?

Answer - 47 : -

Yes, Graphics can be included in XML by using XLink and XPointer specifications. It supports graphic file formats like GIF, JPG, TIFF, PNG, CGM, EPS and SVG.

XLink:


xlink:type="simple"

xlink:href="http://show.com/Cinema.gif"

xlink:show="new">


XPointer:


xlink:type="simple"

xlink:href="http://show.com/Cinema.gif#Shownumber"

xlink:show="new">


Question - 48 : - Can I replace HTML with XML?

Answer - 48 : -

No, XML is not a replacement of HTML. XML provides an alternative approach to define own set of markup elements, and it is used for processing and storing data.

Question - 49 : - How can I include conditional statements in XML?

Answer - 49 : -

We cannot include conditional statement as like programming language.

bar
 

This can be done by using Document Type Definition(DTD).


Hello, world!


Question - 50 : - What are the benefits of XML?

Answer - 50 : -

Benefits of XML are

• Simple to read and understand

• XML can be done with a text editor

• Extensibility – No fixed tags

• Self – descriptive

• Can embed multiple data types


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners