IT Community - Software Programming, Web Development and Technical Support

XML Interview Questions and Answer

This is a discussion on XML Interview Questions and Answer within the Interview Questions & Answers and Tips forums, part of the DiscussWeb IT Curriculum category; hi guys, Let us discuss interview Questions and answers for XML.... Describe the role that XSL can play when dynamically ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > DiscussWeb IT Curriculum > Interview Questions & Answers and Tips

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 08-21-2007, 07:10 AM
it.wily it.wily is offline
D-Web Programmer
 
Join Date: Jul 2007
Posts: 89
it.wily is on a distinguished road
Thumbs up XML Interview Questions and Answer

hi guys,


Let us discuss interview Questions and answers for XML....

Describe the role that XSL can play when dynamically generating HTML pages from a relational database.

Even if candidates have never participated in a project involving this type of architecture, they should recognize it as one of the common uses of XML. Querying a database and then formatting the result set so that it can be validated as an XML document allows developers to translate the data into an HTML table using XSLT rules. Consequently, the format of the resulting HTML table can be modified without changing the database query or application code since the document rendering logic is isolated to the XSLT rules.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 11-20-2007, 09:09 PM
sathian sathian is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 246
sathian is on a distinguished road
Default Re: XML Interview Questions and Answer

What is XML Namespace?

The XML namespaces recommendation defines a way to distinguish between duplicate element type and attribute names. Such duplication might occur, for example, in an XSLT stylesheet or in a document that contains element types and attributes from two different DTDs.

An XML namespace is a collection of element type and attribute names. The namespace is identified by a unique name, which is a URI. Thus, any element type or attribute name in an XML namespace can be uniquely identified by a two-part name: the name of its XML namespace and its local name. This two-part naming system is the only thing defined by the XML namespaces recommendation.

Thanks
Sathian.K
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 11-20-2007, 09:10 PM
sathian sathian is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 246
sathian is on a distinguished road
Default Re: XML Interview Questions and Answer

What is the difference between Schema and DTD?

Schema might outphase DTD. XML shemas are in XML. XML Schema has a lot of built-in data types including xs:string,xs:decimal,xs:integer,xs:boolean,xs:date ,xs:time. XML schemas can be edited with Schema files, parsed with XML parser, manipulated with XML DOM, and transformed with XSLT.
The building blocks of DTD include elements, attributes, entities, PCDATA, and CDATA.

Thanks
Sathian.K
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 11-20-2007, 09:11 PM
sathian sathian is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 246
sathian is on a distinguished road
Default Re: XML Interview Questions and Answer

What is XML template?

* A style sheets describes transformation rules
* A transformation rule: a pattern + a template
* Pattern: a configuration in the source tree
* Template: a structure to be instantiated in the result tree
* When a pattern is matched in the source tree, the corresponding pattern is generated in the result tree

Thanks
Sathian.K
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 11-20-2007, 09:12 PM
sathian sathian is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 246
sathian is on a distinguished road
Default Re: XML Interview Questions and Answer

What is XSLT?

A language for transforming XML documents into other XML documents. XSLT is designed for use as part of XSL, which is a stylesheet language for XML.

Thanks
Sathian.K
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 11-20-2007, 09:14 PM
sathian sathian is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 246
sathian is on a distinguished road
Default Re: XML Interview Questions and Answer

Describe the role that XSL can play when dynamically generating HTML pages from a relational database.

Even if candidates have never participated in a project involving this type of architecture, they should recognize it as one of the common uses of XML. Querying a database and then formatting the result set so that it can be validated as an XML document allows developers to translate the data into an HTML table using XSLT rules. Consequently, the format of the resulting HTML table can be modified without changing the database query or application code since the document rendering logic is isolated to the XSLT rules.

Thanks
Sathian.K
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 11-20-2007, 11:37 PM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 328
KiruthikaSambandam is on a distinguished road
Default Re: XML Interview Questions and Answer

What are the rules for making a tag name in XML?

Rules for making a tag name are

1.It should start with a letter or underscore(_)
2.There are no reserved words , but however xml(in any case) should not be used as a tag name
3.It can include digits, hyphen,periods, ':' can be used but best avoided because it is used for the namespace.

ThankQ
KiruthikaSambandam
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 11-20-2007, 11:38 PM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 328
KiruthikaSambandam is on a distinguished road
Default Re: XML Interview Questions and Answer

When there is HTML for presentation why are you going for XML?

XML and HTML were designed with different goals:

XML was designed to describe data and to focus on what data is.
HTML was designed to display data and to focus on how data looks.

That is HTML is about displaying information, while XML is about describing information.

ThankQ
KiruthikaSambandam
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 11-20-2007, 11:40 PM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 328
KiruthikaSambandam is on a distinguished road
Default Re: XML Interview Questions and Answer

What is the use of xml.onload property?

The <onload> element defines a script to be executed when the AppML application loads in a browser.

Used in conjunction with the <script> form element.

ThankQ
KiruthikaSambandam
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 11-20-2007, 11:42 PM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 328
KiruthikaSambandam is on a distinguished road
Default Re: XML Interview Questions and Answer

How is comments written in an XML document?

XML comments look just like HTML comments:

<message to="xx@yy.com" from="me@mymail.com"
subject="XML Is Really Cool">
<!-- This is a comment -->
<text>
Sample Example for comments..
</text>
</message>

ThankQ
KiruthikaSambandam
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Interview questions from TOP IT Companies venkat_charya Interview Questions & Answers and Tips 21 07-25-2009 06:39 PM
Asp Interview Questions sureshbb ASP and ASP.NET Programming 35 10-29-2008 07:58 PM
Jsp interview Questions And Answers leoraja8 Java Server Pages (JSP) 23 12-23-2007 08:19 PM
MYSQL interview questions it.wily Interview Questions & Answers and Tips 1 09-04-2007 03:33 AM
Interview Questions shiva Interview Questions & Answers and Tips 6 08-24-2007 01:28 AM


All times are GMT -7. The time now is 06:19 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0