Interview :: XML
XML data binding is the process of representing the information in an XML document as an object in computer memory.
XML data binding is used to short your development effort, simplify maintenance, increase reliability. It saves your development time and money. It makes working with XML data very intuitive.
There are two types of XML encoding errors:
- An invalid character was found in text content.
- Switching from current encoding to specified encoding not supported.
These errors occur because XML document can contain non ASCII characters like Norwegian and French. These errors can be avoided by specifying the XML encoding Unicode.
Tree-based API: It compiles an XML document in a tree like structure and loads it into the memory. You can traverse and change the tree structure. Tree based API's are useful for a wide range of applications. Example of tree-based API is DOM parser.
Event-based API: An event based API provides the reports to an application about the parsing event. It uses a set of built-in call back functions. Example of event-based API is SAX parser.
The XmlrReader class represents a reader that provides fast, noncached, forward-only access to XML data. You need to import the following namespaces to work with XmlReader class in .NET.
In VB:
Imports System.Xml
In C#:
using System.Xml;
What is the difference between CDATA and PCDATA?
CDATA means unparsed character data whereas PCDATA means parsed character data.
XQuery is a query language that is used to retrieve data from XML document.
A namespace is a qualified name that is associated with the DTD/Schema location .
A document may have duplicate elements and attributes. So, the namespace defines a way to compare duplicate elements and attribute names.
SGML is a vast and powerful generalized markup language that is used to define descriptions for the structure of several electronic documents.
Yes, graphics can be stored in XML file by using XLink and XPointer. It supports graphics like GIF, JPG, TIFF, PNG, CGM, EPS, SVG.
Yes, XML is a case sensitive language.