45 xml interview questions and answers


XML interview questions and answers

Part 1   Part 2   Part 3   Part 4   Part 5
1.What is XML?

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

2.List the rules to be followed by an XML document.

They must have a root tag, the document should be well formed : the tags should be properly closed, since XML is case sensitive, one should take care..............
Read answer

3.Define DTD (Document Type definition).

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..............
Read answer

4.What is a CDATA section in XML?

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

5.What is XSL?

XSL is a language for expressing style sheets. An XSL style sheet is a file that describes the way to display an XML document...............
Read answer

6.What is XQuery?

Xquery is a query language that is used to retrieve data from XML documents...............
Read answer

7.What is XMLA ?

It is a Microsoft specified XML-messaging-based protocol for exchanging analytical data between client applications and servers..............
Read answer

8.What is DOM?

DOM is an interface-oriented Application Programming Interface. It allows for navigation of the entire document...............
Read answer

9.What is XML Namespace?

An XSL sheet or a document may have duplicate elements and attributes. Therefore, the XML namespaces define a way to distinguish between..............
Read answer

10.What is XML data binding?

XML data binding refers to the process of representing the information in an XML document as an object in computer memory...............
Read answer

11.What is an XML encoding error?

XML documents can contain non ASCII characters, like Norwegian æ ø å , or French ê è é which introduce errors...............
Read answer

12.What is XML Serialization and Binary Serialization?

XML Serialization makes it possible to convert any common language runtime objects into XML documents or streams and vise versa. ..............
Read answer

13.How do you load data from XML file to a ORACLE table?

You need to first create a table in oracle that matches with the fields of the XML data...............
Read answer

14.What are XML indexes and secondary XML indexes?

The primary XML index is a B+tree and is useful because the optimizer creates a plan for the entire query. ..............
Read answer

15.What is the purpose of FOR XML in SQL Server?

SQL Server 2000 provides the facility to retrieve data in the form of XML with the help of the FOR XML clause appended to the end of a SELECT statement. ..............
Read answer

16.What is EXtensible Application Markup Language (XAML)?

XAML is a markup language used to define dynamic or static UIs for .NET applications.......
Read answer

17.Advantages of XAML

Easy designing of a UI...............
Read answer

18.How do we create the XSD schema?

While creating XML documents, it is important to structure the elements such as name of the elements and datatypes which should be understood by application. Here the need of XSD Schema is sought.............
Read answer

19.What is the use of FOR XML in SQL Server?

SQL Server is having a fantastic feature to retrieve data persisted in the form of XML format. The data in the XML format can be retrieved using FOR XML clause appending to the SELECT statement.............
Read answer

20.What is the difference between SAX parser and DOM parser?

SAX is developed especially for java programs. It implements a model that is memory resident. To access data from XML file, SAX follows top to bottom approach..................
Read answer

21.What is the difference between Schema and DTD?

DTD supports two types of data – CDATA and PCDATA. Schema supports numeric, Boolean and String data types and suitable.................
Read answer

22.How do you parse/validate the XML document?

Parsing the XML document is the only way to validate the XML file. Validation is done by either DOM parser or the SAX parser..............
Read answer

23.What is XML template?

A transformation rule describes a style sheet. Transmission rule is a combination of a pattern and a template...............
Read answer

24.What is Xpath?

XPath specifies the path in the XML document which has hierarchical elements. XPath is used with XPointer and XSLT and parser..............
Read answer

25.What are the steps to transform XML into HTML using XSL?

The xsl:output element specifies how to display the result tree. The XSL processor produces the output result tree...............
Read answer

Test your XML knowledge with our multiple choice questions!

Test your XML score - XML (38 questions)

Next >>

Also read

What is XPath?

XPath is a language for addressing an XML document's elements and attributes. As an example, say you receive an XML document that contains the details of a shipment and you want to retrieve the element/attribute values from the XML document.........

SQL Server 2005 XML support

Explain the concepts and capabilities of SOAP. Explain the purpose of Native XML mode in SQL Server 2005.
Native XML Access vs. SQLXML.
Benefits of Native XML Access in SQL Server 2005.
Limitation for Native XML Web Services.

XML Data type implementation in SQL Server 2005

What is Untyped XML?
Provide examples for : Create a table with a untype XML column, Insert into an untyped XML data type column
What is typed XML?
The XML data type comes with five methods. Explain them
Differentiate between Untyped XML and Typed XML.
Explain with an example how to apply defaults constraint to an XML data type column.
You can add constraints to XML data type columns. Illustrate with an example.

Querying and modifying XML data in SQL Server 2005

What is XQuery language?
Explain the syntax rule of XQuery language.
XQuery expression contains two parts: the Prolog and the Body. Explain them
Explain PATH expression in XQuery with an example.

Write your comment - Share Knowledge and Experience

Discussion Board
XML interview questions and answers.

How do I create my own document type?
You can create your own document type by incorporating DTD or Schema. DTD and Schema is used with an XML editor that guide and control the construction of document. To create your own document type, analysis of class documents are required such as: reports, invoices, letter etc. Once the structure is set then the document type can be written according to your requirements.

How does XML handle metadata?
XML doesn’t have pre-defined elements as it is not an application, but an architecture which doesn’t verify the way the implementation of metadata being used. XML allows you to choose a suitable method to handle XML contents and its metadata information. XML also allows you to define your own markup language in which you can incorporate the extended hypertext features.

When should I use a CDATA Marked Section?
CDATA is used to let an author to quote fragments of text, containing markup characters. CDATA is not used to preserve embedded markup characters. You use it when you want to design according to your need, like writing documentation etc. For example:-
“Text to write here”<![CDATA[<em>markup</em>]]>

Rohit Sharma 12-11-2011 10:58 AM

XML interview questions and answers.

How does XML handle white-space in my documents?
The white spaces are passed by the parser to the application. It includes the following elements: line-break, Tab, normal space. Parser then identifies the context in which the white spaces was found and send it to the application for further processing. Parser informs the application that, white space has occurred in element content. Application, after receiving the information decides which type of white space to discard and which to retain.

What is Document Type Definition (DTD)?
DTD is known as Document Type Definition, which provides a description of a document written in XML. DTD consists of XML declaration syntax. It also defines the naming convention rules for different types of element. If you want to describe the lists consisting of some items then DTD will look like:
<!ELEMENT List (Item)+> // Element list contains one or more items (+)
<!ELEMENT Item (#PCDATA)> // element types contains plain text (Parsed Character Data or PCDATA).

Rohit Sharma 12-11-2011 10:56 AM

XML interview questions and answers.

How can I use XML?
To use XML the requirement is to have a compatible browser that has the support of XML. You can use any browser which supports XML components or XML language. XML is just a file which gets created when you open any website on your browser. It saves your data information and allows the server and the client system to converse with each other. XML files are created with an extension of .xml.

How can I read an XML file?
You can use a web browser that supports XML format to open the XML file. If your file is a valid XML file then it will open in any XML supported web browser, if it is not a valid file then it will show an error and web browser won’t display the content of the file. Web browser will show the file in an unformatted way that may become hardly readable. If the file consists of CSS style sheet link, then browser will show the file in a formatted way which can be readable.

How do I control formatting and appearance?
One of the advantages of XML over HTML is that, it allows you to define your own tag set. To use the tags you have to create a style sheet, which is used to display the formatted text. The formatting and appearance will be implemented using the style sheet. The style sheet will be displayed on the browser in the format which you have specified.

Rohit Sharma 12-11-2011 10:54 AM

XML interview questions and answers.

What are the related specifications of XML?
XML stands for Extensible Markup language which is designed to transport and store data. The related specification of it as follows:
- XML Namespaces: allows easy to store XML elements and attributes for a document.
- XML Base: set the base for resolution of relative URI references. It defines xml:base attribute.
- XML information/infoset: describes an abstract data model for XML documents.
- XPath: defines a syntax which identifies one or more internal components (elements, attributes, etc) included in XML document.
- XSLT: is a language with an XML-based syntax that is used to transform XML documents into XML or other formats.
- XQuery: allows easy to use methods to access, manipulate and return XML in XML databases.
- XML Signature/Encryption: defines syntax and processing rules for creating and encrypting digital signatures on XML content.

What is Document Object Model? Why it is used?
Document Object Model also known as DOM, is an application programming interface that allows navigation through objects. The documents are treated as objects. DOM documents are either created by a parser or generated manually by users. DOM requires large portion of memory, as the entire document has to be loaded before any access to it, can be made.

Rohit Sharma 12-11-2011 10:54 AM


Latest placement tests
Latest links
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us