Interview FAQs

FAQs of level

No. XML itself does not replace HTML. Instead, it provides an alternative which allows you to define your own set of markup elements. HTML is expected to remain in common use for some time to come, and the current version of HTML is in XML syntax. XML is designed to make the writing of DTDs much simpler than with full SGML.
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.
XPath stands for XML Path. It is a language used to access different parts of an XML document, such as elements and attributes.

The following are two main types of XML parsers:
Tree-based API - Compiles an XML document into a tree structure and loads it into memory. You can traverse and change the tree structure. The DOM is an example of a tree-based API.
Event-based API - Provides the report to an application about the parsing events by a set of built-in callback functions. An example of the event-based API is SAX.

The System.xml.dll is the real physical file, which contains the XML implementation. Some of the other namespaces that allow .NET to use XML are as follows:

  • System.Xml
  • System.Xml.Schema
  • System.Xml.XPath
  • System.Xml.Xsl

The following are the advantages of DOM:

  • DOM stores the entire XML document into memory before processing. Therefore, the XML structure can be easily modified and values can be added, changed, and removed.
  • DOM enables to traverse the XML structure in any direction. It means that you can access any node of the XML structure by traversing through the XML structure.

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

XML namespaces are used to avoid element name conflicts, and it can be avoided by using prefix before the name.
PreviousDisplaying 3 of 7Next
1 2 3 4 5 6 7
Need Help? Contact Us.

Log in


Forgot password?


New User