11 August 2011

.net interview questions: XML

Q. What is XML?

Answer. XML, Extensible Markup Language, is an open, text based markup language that provides structural and semantic information to data

Q. Define DTD (Document Type definition)?.

Answer. XML DTD is a rule book that an XML document follows. Once DTD is ready, you can create number of XML documents following the same rules.

Contributed by : Saravana Kumar

Q. What is a CDATA section in XML?

Answer.  The term CDATA is used when you dont want some text data to be parsed by the XML parser


Contributed by : Nithya S. Nair

Q. What is XML Namespace?

Answer.  An XSL sheet or a document may have duplicate elements and attributes. Therefore, the XML namespaces define a way to distinguish between duplicate element types and attribute names.
An XML namespace is a collection of element type and attribute names. It is a URI due to which any element type or attribute name in an XML namespace can be uniquely identified.
It consists of two parts : the name of the XML namespace and the local name.


References

http://www.careerride.com/XML-Namespace.aspx

http://www.w3.org/TR/xml-names/


Contributed by : Keerthy C


Q.  What is DOM and how does it relate to XML?

Answer.  The Document Object Model (DOM) is an interface specification maintained by the W3C DOM Workgroup that defines an application independent mechanism to access, parse, or update XML data. In simple terms it is a hierarchical model that allows developers to manipulate XML documents easily Any developer that has worked extensively with XML should be able to discuss the concept and use of DOM objects freely. Additionally, it is not unreasonable to expect advanced candidates to thoroughly understand its internal workings and be able to explain how DOM differs from an event-based interface like SAX.

Q. What is SOAP and how does it relate to XML?

Answer.  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.

Contributed by: : Pinky Bhadran

index page asp.net interview questions click here

No comments:

Post a Comment