• +91 9723535972
  • info@interviewmaterial.com

XML Interview Questions and Answers

XML Interview Questions and Answers

Question - 81 : - What are the three components in SOAP?

Answer - 81 : -

It consists of an envelope, a set of encoding rules, and a convention for representing remote procedure calls.

Question - 82 : - What is XML parser function?

Answer - 82 : - It is used to convert an XML file or document into the XML DOM object which is usually written in JavaScript.

Question - 83 : - What is CDATA in XML?

Answer - 83 : - CDATA stands for character data. Characters like ‘<’ and ‘>’ are not allowed in XML. CDATA starts with . CDATA is an unparsed character data that cannot be parsed by the XML parser.

Question - 84 : - How are comments used in XML?

Answer - 84 : -

Comments are displayed as . It is similar to HTML. It can be used for a single line or multiple lines.

Question - 85 : - What is the difference between a simple element and a complex element?

Answer - 85 : -

Simple elements cannot be left empty. It contains fewer attributes, child elements, etc. Simple elements are text-based elements. Complex elements can contain sub-elements, empty elements, etc. The complex element can hold multiple attributes and elements.

Question - 86 : - What is XSNL?

Answer - 86 : -

XSNL stands for XML Search Neutral Language. This language acts between the meta-search interface and the targeted system.

Question - 87 : - What is SAX in XML?

Answer - 87 : -

SAX stands for Simple API for XML. It is a sequential access parser.

It provides a mechanism of reading data from an XML document. It is said to be an alternative to DOM. DOM operates on the documents as a whole, SAX parsers operate on each piece of the XML document sequentially.

SAX consumes less memory. It cannot be used to write an XML document.

Question - 88 : - What are XML naming rules?

Answer - 88 : -

Naming rules are:

  • Element names must start with a letter or underscore.
  • Element names are case sensitive.
  • Element names cannot start with the letters XML.
  • Element names can contain letters, digits, hyphens, underscore, and periods.
  • Element names cannot contain spaces.

Question - 89 : - Example of HttpRequest.

Answer - 89 : -

var xhttp= newXML Httprequest();
Xhttp.onreadystatechange=function();
{ If this.readystate==4&& this.status==200)
        { Action to be performed when document is ready;
Document.getelementbyID(“Demo”)
Innerhtml=xhttp.responseText;}};

Question - 90 : -
What is XML Httprequest? What are its advantages?

Answer - 90 : -

All modern browsers have a built-in XML Httprequest object to request for data from a server.

Its advantages are as follows:

  • Updating a web page without reloading the page.
  • Request data from a server
  • Receive data from a server after the page has been loaded.
  • Send data to a server in the background.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners