XML interview questions

XML quiz questions

  • 1.

    What is SAX?

    Answer:

    SAX is an interface processing XML documents using events.

    View
  • 2.

    What is DiffGram in XML?

    Answer:

    A DiffGram is an XML format which is used to find current and original versions of XML document.

    View
  • 3.

    What is Data Island?

    Answer:

    An XML Data island is XML data embedded into a HTML page. This works only with the Internet.

    View
  • 4.

    What is XML Signature?

    Answer:

    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.

    View
  • 5.

    Whether root element is required for XML? If so, how many root elements are required?

    Answer:

    Yes, root element is required, and it can have only one root element in each XML.

    View
  • 6.

    What are the types of XML Parsers?

    Answer:

    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.

    View
  • 7.

    If XML attribute name itself has double quotes, then how it can be represented?

    Answer:

    Attribute name can be represented within single quotes if double quotes are present in the attribute name.

    Example:

     <country city='Texas "US"'></country>

     

    View
  • 8.

    What is the correct syntax when we define XML version?

    Answer:

    <?xml version=”1.0”/>

    is the correct declarative syntax used to define XML version.

    View
  • 9.

    What are the three parts of XSL?

    Answer:

    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
    View
  • 10.

    Is there a way to describe XML data?

    Answer:

    Yes, XML uses Document Type Definition (DTD) to describe the data.

    View
  • 11.

    What is Complex Element?

    Answer:

    A complex element contain other elements or attributes and following are kinds of Complex Elements:

    • It has empty elements

    • It contain other elements
    • It contain only text
    • It contain both other elements and text
    View
  • 12.

    What is Simple Element?

    Answer:

    A simple element contain only text and following are the kinds of Simple Element:

    • No attributes
    • Doesn’t contain other elements
    • It cannot be empty
    View
  • 13.

    Which XML is set to be valid XML?

    Answer:

    When the XML file is validated against the Document Type Definition(DTD), then it is called valid XML. DTD is nothing but it defines the structure of an XML file.

    View
  • 14.

    What is XML Encoding?

    Answer:

    XML documents may contain Non-ASCII characters like French and Norwegian characters. XML Encoding is used to avoid errors and XML files have to be saved as Unicode.

    View
  • 15.

    Why XML editor is needed instead of Notepad?

    Answer:

    XML editors are required to write error free XML documents, and it is used to validate against DTD or schema. Editors are able to check:

    • Open and Close Tags

    • XML against DTD

    • XML against Schema

    • Color code on XML Syntax

    View
  • 16.

    What is XLink and XPointer?

    Answer:

    XLink is the standard way of creating hyperlinks in the XML files. Xpointer which allows those hyperlinks to point to more specific parts of the XML file or document.

    View
  • 17.

    What is XQuery?

    Answer:

    XQuery was designed to query XML data which is nothing but SQL for database tables. XQuery is used to fetch the data from the XML file.

    View
  • 18.

    What are nested elements in XML?

    Answer:

    If one or more elements are nested inside the root element is called nested element. Nesting can be easy to understand and also keeps order in an XML document.

    View
  • 19.

    Why XSLT is important for XML?

    Answer:

    XSLT is abbreviated as eXtensible Sytlesheet Language Transformation which is used to transform an XML document to HTML before it is displayed to the browser.

    View
  • 20.

    What is DTD?

    Answer:

    DTD is abbreviated as Document Type Definition and it is defined to build legal building blocks of an XML document. It defines the XML document structure with elements and attributes.

    View

© 2017 QuizBucket.org