GeekInterview.com
Series: Subject: Topic:

XML Interview Questions

Showing Questions 1 - 20 of 46 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

Difference between XML and HTML

Asked By: navin1972 | Asked On: Mar 16th, 2008

Write five difference between XML and HTML

Answered by: amit on: Apr 14th, 2012

*In HTML sequence of tags does not matter.

Code
  1. <b><i>....<b><i>

*But in XML sequence of tags matters.

Code
  1. <b><i>....<b><i>

will produce an error.

Answered by: swetha on: Mar 15th, 2012

Xml is extensible mark up language
Html is hypertext mark up language

1)which .Net host doesn't support application domain a)iis b)internet explorer c)shell executable d)ASP.Net 2)in .Net there is no deterministic destruction true/false 3).Net runtime is having --------...

Asked By: swapprose | Asked On: Mar 25th, 2006

Answered by: Sandhya.Kishan on: Mar 29th, 2012

1)Shell executable doest support application domain.

2)True,in .Net there is no deterministic destruction

3).net runtime is having two types of isolation.

What is xsnl?

Asked By: VJ | Asked On: Oct 4th, 2007

Answered by: Sandhya.Kishan on: Mar 21st, 2012

XSNL(XML search neutral language) is a language which acts between the meta search interface and the targeted system, it is built to be as flexible and fine grained as possible.

It is used for the development of an advanced meta search engine specialized in newspaper news.

XML and sgml

Asked By: greenenergy4me | Asked On: Jul 14th, 2010

What is the relationship between XML and sgml? Does XML replace sgml or is it a subset of sgml?

Answered by: Sandhya.Kishan on: Mar 21st, 2012

SGML is the basis XML and HTML and provides a way to define markup languages and sets the standard for their form.SGML passes structure and format rules to markup languages.

XML is a subset of SGML.It is a meta language and is used to define other markup languages.

Microsoft XML

Asked By: rajadurai24 | Asked On: Feb 21st, 2010

What is Microsoft XML?

Answered by: Sandhya.Kishan on: Mar 17th, 2012

It is a service which enables the developers to create interoperable XML applications on all platforms of XML 1.0.

XML attributes elements

Asked By: Depthi | Asked On: Nov 1st, 2010

What are XML attributes and elements? Explain with an example?

Answered by: Manasa on: Oct 13th, 2011

Code
  1. <person sex="female">
  2.   <firstname>Anna</firstname>
  3.   <lastname>Smith</lastname>
  4. </person>
  5.  
  6. <person>
  7.   <sex>female</sex>
  8.   <firstname>Anna</firstname>
  9.   <lastname>Smith</lastname>
  10. </person>
  11.  

In the first example sex is an attribute. In the last, sex is an element. Both examples provide the same information.

Answered by: MR on: Jul 13th, 2011

Consider the following XML code snippet: is the element, and first-name is the attribute.

Code
  1. <name first-name="Raj">Kumar</name>
  2.  

What are the differences between sax and dom parsers?

Asked By: Interview Candidate | Asked On: Jun 16th, 2005

Star Read Best Answer

Editorial / Best Answer

Answered by: prasanna_b2001@yahoo.com

Member Since Dec-2005 | Answered On : Dec 19th, 2005

Both SAX and DOM are used to parse the XML document. Both has advantages and disadvantages and can be used in our programming depending on the situation

SAX:

1. Parses node by node

2. Doesnt store the XML in memory

3. We cant insert or delete a node

4. Top to bottom traversing

DOM

1. Stores the entire XML document into memory before processing

2. Occupies more memory

3. We can insert or delete nodes

4. Traverse in any direction.

If we need to find a node and doesnt need to insert or delete we can go with SAX itself otherwise DOM provided we have more memory.

Prasanna Balaraman.

Answered by: venkateshadhi on: Oct 30th, 2010

The SAX parser we can parse it by tag by tag, SAX Parser will not store in Memory
Where as in DOM parser the Document will be read fully and store it in Memory and Start Parsing.

Answered by: samirshaikh on: May 6th, 2008

The main difference between DOM and SAX is in the representation of the XML document they use. DOM uses an in-memory tree-like structure, whereas, SAX uses linear event driven approach.

Check XML file

Asked By: ayongying | Asked On: May 28th, 2010

How do you check if a given XML file is valid?

Answered by: Sanjida123 on: Jun 4th, 2010

Open the file with Internet Explorer.

Math ml

Asked By: rajadurai24 | Asked On: Feb 21st, 2010

What it is math ml?

Answered by: sujatham on: Mar 23rd, 2010

Mathematical Markup Language (MathML) is an application of XML for describing mathematical notations and capturing both its structure and content.

Use of CSS in XML document

Asked By: mukulverma2408 | Asked On: Nov 18th, 2009

What is the use of CSS in XML document? How will you create CSS for a particular XML file?

Answered by: preeti.tankwal on: Mar 2nd, 2010

Firstly this is the way we can refer to the CSS file created for the existing xml document. "xml physics chemistry mathematics And here is my CSS - a text file sav...

XML validate

Asked By: rajadurai24 | Asked On: Feb 21st, 2010

Is it necessary to validate XML file against a dtd? Justify

Answered by: preeti.tankwal on: Mar 2nd, 2010

No it is not mandatory to use DTD always.The preferred approach is to validate XML documents against XML schema definitions (XSD schemas). However, you can also validate XML against DTD's or XML-D...

Xpath

Asked By: rajadurai24 | Asked On: Feb 28th, 2009

What is xpath?

Answered by: opriya15 on: Feb 19th, 2010

Xpath tells where exactly a particular node is located in the XML document. Its structure(format) resembles that of a any folder structure in windows.For e.g. To locate a file named "Test.txt&quo...

Answered by: vijusatya on: Jun 4th, 2009

XPath describes where the items are located in a xml files For Example<employees><name>XYZ</name>----path for this is employees/name<address><street address> 3 rd mg road...

SQLconnectionclass

Asked By: khaleelullah | Asked On: Jun 15th, 2008

Which of the following is correct q) readXML method belongs to the class of .............. Namespacea)system.Datab)system.Data.Sqlclientc)system.Xmldsystem.Data.XML

Answered by: vadivel.kv on: Jan 29th, 2010

System.Data Namespace

Answered by: IanJoshua on: Jul 8th, 2008

System.Data

XML parsers

Asked By: rajadurai24 | Asked On: Feb 28th, 2009

What are the different kind of parsers used in XML?

Answered by: Shasra on: Sep 22nd, 2009

There are 2 parsers:1) DOM (Document object model): This will interpret Complete XML document.Microsoft major concentration is DOM Parser.2) SAX Parser (Simple Aplication programming Interface for XML...

Answered by: nabinkumarbehera on: Mar 24th, 2009

XML Parser is nothing but a interface between user and XML Document.

XML Parsers are divided into 2 types

1) DOM (Document Object Module)
2) SAX (Simple API for XML)

What are the different kinds of tags available in XML?

Asked By: janelyn | Asked On: Mar 26th, 2007

Answered by: goksn on: Sep 5th, 2009

Though all are user defined tag, there is a special tag that starts with '?' ,which stands for processing instructions in xml.

Answered by: archikinu on: Sep 28th, 2007

In XML all the tags are user defined only.

What are the major features of XML?

Asked By: StephenRaj | Asked On: Mar 25th, 2007

Answered by: bharatreddy on: Apr 30th, 2009

XML is used for describing and transform the data across different platforms. It is in simple text format. It is completely proprietary.

Answered by: ebeworld on: Apr 10th, 2007


  • Properly nested

  • Case sensitive

  • Text based


Compatible with the existing standards, Html,...

What is a cdata section in XML?

Asked By: norman | Asked On: Mar 26th, 2007

Answered by: rajadurai24 on: Feb 26th, 2009

CDATA is used to store plain text or string values. It is commonly used with implied attributes, which allows user to define their own values. For example, <! ATTLIST Student LastName (CDATA) #IMPLIED>

Answered by: SS on: Aug 23rd, 2007

CDATA in XML is the character data is is not parsed by the XML Processor. If there is a section in the document that you do not want the XML processor to parse, then it can be enclosed in
<![CDATA[ ......................]]>

What is dtd?

Asked By: StephenRaj | Asked On: Mar 25th, 2007

Answered by: rajadurai24 on: Feb 27th, 2009

The purpose of a DTD (Document Type Definition) is to define the legal building blocks of an XML document.

DTD defines the document structure with a list of legal elements and attributes.

Answered by: navin1972 on: Mar 16th, 2008

Dtd is document type definition used to building block and it is the set of the rule and document information.

Why this parser needed exactly over HTML or JSP pages

Asked By: vislawath.jawaharlal | Asked On: Jul 18th, 2008

Why this parser needed exactly over HTML or JSP pages, these two are enough for viewing the page. Can I know more sophisticated reasons from u?

XML to Oracle

Asked By: violet_wings_vamsi | Asked On: Mar 3rd, 2008

How do you load data from XML file to a Oracle table?

Answered by: IanJoshua on: Jul 8th, 2008

This is from XML to sqlserver

exce sp_xml_preparedocument @inthandle int output,@xmldocument

select * from openxml(@inthandle,'/root/customer',2)
with (customerid varchar(10),
      contactname varchar(20))

exec sp_xml_removedocument @inthandle

First | Prev | | Next | Last Page

 

 

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us:
 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, click "Subscribe".