• +91 9723535972
  • info@interviewmaterial.com

XML Interview Questions and Answers

XML Interview Questions and Answers

Question - 91 : - Can XML files be viewed in browsers?

Answer - 91 : -

Yes, the XML file can be viewed in all known browsers. They are not displayed as HTML pages.

Question - 92 : -
Write a code for XML attribute and element.

Answer - 92 : -

Maharashtra
Mumbai
     
      India
     Maharashtra
     Mumbai
     
In the first element, location is an attribute. In last, location is an element. The user can choose the attribute or element.

Question - 93 : - What are XML attributes? Explain with an example.

Answer - 93 : -

XML attribute values should always be quoted. Single or double quotes can be used in XML.

For example:

Question - 94 : - What are well-formed XML documents?

Answer - 94 : -

Well-formed XML documents have the following features:

  • An XML document must have a root element.
  • XML tags are case sensitive.
  • XML elements should be properly nested.
  • XML values should be properly quoted.
  • XML tags should be closed properly.

Question - 95 : -
Provide an example of XML.

Answer - 95 : -

  • Sale for today
  • Laptop table
  • 2008
  • 500

Question - 96 : - Describe XPath.

Answer - 96 : -

XPath can be described as follows:

  • XPath is a W3C recommendation.
  • It is the syntax for defining parts of an XML document.
  • It uses path expressions to navigate in the XML documents.
  • XPath contains a standard function library.
  • XPath is a major element of the XSLT standard.
  • It is used to navigate through attributes and elements in an XML document.

Question - 97 : - How to run an XML file?

Answer - 97 : - XML is not a programming language. It cannot be run or executed. It can be viewed or displayed on the browser or using the XML editor.

Question - 98 : - How to connect XML with the database?

Answer - 98 : -

XML import and export modules are used to connect XML applications with databases. There has to be a 1:1 match between the field name of element type and the database table in DTD or XML schema. While in some cases little programming is required to establish the desired match.

Question - 99 : - hat is Diffgram in XML?

Answer - 99 : -

Diffgram is an XML format that is used to find the current and original versions of the XML document.

Question - 100 : - What do XML editors check?

Answer - 100 : -

The XML editors check are as follows:

  • XML against schema
  • XML Syntax color code
  • XML against DTD
  • XML standard open and close tags


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners