Welcome Guest | Sign in | Register
XML - DotNet Programming Interview Questions and Answers | LucentBlackBoard | LucentBlackBoard.com
16. Give an example of a DOM-enabled XML parser.

The XML parser is MSXML, which is fully DOM-enabled.

17. What is an XML schema?

An XML schema provides the definition of an XML document. This implies that an XML schema defines the following in an XML document:
• The elements that can appear in an XML document.
• The attributes that can appear in an XML document.
• The elements that are child elements.
• The order of child elements.
• The number of child elements.
• Whether an element is empty or it includes some text.
• The data types for elements and attributes.

18. State the advantages of XML schemas over DTD.

Microsoft developed a language known as the XML Schema Definition (XSD) to describe the schema to an XML document. The following are the advantages of XML schemas over DTDs:
• XSD keeps much better control over types of data than the DTD.
• DTD does not allow creating customized data types while the XSD provides full support to create customized data types.
• XSD allows you to specify restrictions on data. It means that you can define the type of data that should be stored in an element, for example numbers or alphabets.
• The XSD is quite easy to learn and to understand because its syntax is same as that of the XML document.

19. Using XSLT, how would you extract the value of a specific attribute from an element in an XML document?

The components necessary for the above mentioned operation are as follows:
• The template element - Matches the correct XML element.
• The value-of element - Selects the attribute value.
• The optional apply-templates element - Allows continuous processing of the document

20. Which classes are supported to make an XML DOM?

The following are the different classes in the System.Xml namespace that make up the XML DOM:
• The XmlNode class
• The XmlDocument Class
• The XmlElement Class
• The XmlAttribute Class
• The XmlText class
• The XmlComment class
• The XmlNodeList Class




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