Welcome Guest | Sign in | Register
XML - DotNet Programming Interview Questions and Answers | LucentBlackBoard | LucentBlackBoard.com
11. What is XPath?

XPath stands for XML Path. It is a language used to access different parts of an XML document, such as elements and attributes.

12. What is an XML attribute?

An XML attribute contains additional information regarding that particular element. The XML attributes use the name-value pair. For example, the element student has an attribute called id and the value of this attribute is set to s01, as shown in the following code snippet:

< student id="s01" >
...
< /student >

13. The XML elements cannot be empty. Is it true?

No, it is not true.

14. Describe the role that XSL can play while dynamically generating HTML pages from a relational database

The SQLXML 3.0 and advanced versions provide the facility of mapping the SQL queries output with XSLT templates. It uses XSLT to present the records that are retrieved from databases on Web pages (HTML pages).

An application can use XSLT to modify the output that is retrieved from data sources and display the output by XSL templates. The XSLT displays data without affecting the database query and the code of application.

15. What are the advantages of DOM?

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.




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.