XML Interview Question and Answers
1. |
Define XML? |
|
- The Extensible Markup Language (XML) was developed in 1996 by the World Wide Web Consortium's (W3C's) XML working group.
- XML is a widely supported open technology for describing data that has become the standard format for data exchanged between applications over the internet.
|
|
|
2. |
What is the advantage of XML? |
|
- XML is simple, platform independent and is a widely adopted standard.
-
The power of XML is that it separates the user interface from the structured data.
- This separation of data from presentation enables the integration of data from diverse sources.
|
|
|
3. |
Give any two differences between the Xml Reader and Xml Node Reader? |
|
- Xml Node Reader Processes the nodes from an in memory DOM tree Structure rather than a text file.
- Xml Node Reader can begin reading at any sub tree node in the structure. Not just at the root node.
|
|
|
4. |
What are the important in XML? |
|
- Placing white space characters before the XML declaration is an error.
- The start tag must have a matching end tag.
- XML is case sensitive.
- Using a white space character in an XML element name is an error.
- Nesting XML tags improperly is a syntax error.
|
|
|
5. |
What is the need for serialization in XML? |
|
- Serialization is a convenient way to store objects so they can later be deserialized into the original objects.
- Then the objects can be converted to an XML format.
|
|
|