XML Interview Questions and Answers
Question - 51 : - What are the disadvantages of XML?
Answer - 51 : -
Following are the disadvantages of XML:
• XML will be just a text file if elements and attributes are not defined properly.
• Overlapping markup is not permitted
Question - 52 : - What is SAX?
Answer - 52 : -
SAX is an interface processing XML documents using events.
Question - 53 : - What is DiffGram in XML?
Answer - 53 : -
A DiffGram is an XML format which is used to find current and original versions of XML document.
Question - 54 : - What is Data Island?
Answer - 54 : -
An XML Data island is XML data embedded into a HTML page. This works only with the Internet.
Question - 55 : - What is XML Signature?
Answer - 55 : -
XML Signature is recommended by W3C, and it acts as a digital signature for XML documents. If the signature is contained outside the document, it is called detached signature. If it contains inside the XML document, then it is called Enveloping signature.
Question - 56 : - Whether root element is required for XML? If so, how many root elements are required?
Answer - 56 : -
Yes, root element is required, and it can have only one root element in each XML.
Question - 57 : - What are the types of XML Parsers?
Answer - 57 : -
There are two types of parsers – Non-Validating and Validating Parsers. Name itself implies Non-Validating will not validate the XML and Validating parser will validate the XML with DTD.
Question - 58 : - If XML attribute name itself has double quotes, then how it can be represented?
Answer - 58 : -
Attribute name can be represented within single quotes if double quotes are present in the attribute name.
Example –
Question - 59 : - What is the correct syntax when we define XML version?
Answer - 59 : -
is the correct declarative syntax used to define XML version.
Question - 60 : - What are the three parts of XSL?
Answer - 60 : -
XSL consists of three parts:
- XSLT – Used to transform XML documents
- XPath – Used for navigating in XML documents
- XSL-FO – Used for formatting XML documents