Interview FAQs

FAQs of level


A complex element is an XML element that contains other elements and/or attributes.

There are four kinds of complex elements:

  1. empty elements
  2. elements that contain only other elements
  3. elements that contain only text
  4. elements that contain both other elements and text

A simple element is an XML element that can contain only text.

A simple element cannot have attributes

A simple element cannot contain other elements

A simple element cannot be empty

However, the text can be of many different types, and may have various restrictions applied to it

When you parse an XML document with a DOM4J parser, you get the flexibility to get back a tree structure that contains all of the elements of your document without impacting the memory footprint of the application. The DOM4J provides a variety of utility functions you can use to examine the contents and structure of the document in case document iswell structured and its structure is known. DOM4J uses XPath expression to navigate through the XML document.

XPath is a technology used in XML. It is used to retrieve elements from XML documents. XPath expressions can be used to locate and retrieve elements, attributes and values from XML files because XML documents are structured. It is similar to SQL.
As SQL is used to retrieve data from database, XPath is used to retrieve data from XML.

Even if candidates have never participated in a project involving this type of architecture, they should recognize it as one of the common uses of XML. Querying a database and then formatting the result set so that it can be validated as an XML document allows developers to translate the data into an HTML table using XSLT rules. Consequently, the format of the resulting HTML table can be modified without changing the database query or application code since the document rendering logic is isolated to the XSLT rules.

No, although it is useful because a lot of XML terminology and practice derives from two decades experience of SGML.
Be aware that ?knowing HTML? is not the same as ?understanding SGML?. Although HTML was written as an SGML application, browsers ignore most of it (which is why so many useful things do not work), so just because something is done a certain way in HTML browsers does not mean it is correct, least of all in XML.

This is an extension or follow up questions of previous XSLT question about Identity template. we use select="@|node() to copy all child element and any attribute.if we do not use that than <xsl:apply-templates/> will default on select="node()" which will copy child nodes except attributes.

The Simple Object Access Protocol (SOAP) uses XML to define a protocol for the exchange of information in distributed computing environments. SOAP consists of three components:

  • an envelope
  • a set of encoding rules, and
  • a convention for representing remote procedure calls.
Unless experience with SOAP is a direct requirement for the open position, knowing the specifics of the protocol, or how it can be used in conjunction with HTTP, is not as important as identifying it as a natural application of XML.

Need Help? Contact Us.

Log in


Forgot password?


New User