SlideShare una empresa de Scribd logo
1 de 2
1.Design a detailed xml schema for managing campus placement data including
constraints -8
such as a studnt being able to get only one t1/t2 offer,not being able to attend
interviews after accepting an offer.
2.create 2 diff ns having common name for elements and show how ns can b used in
the xml doc which uses both the ns. - 10
how is this situation handled in relational databases
3.how is data in xml different from data from relational databases tables. -4
4.what are the limitations of DTD?Show how these limitations are overcommed in
ML Schema.Illustrate with examples. -10
5.Given an XML
<employees>
<person>
<firstname>..
<lastname>..
<dob>..
<address>..
</person>
<person>
<firstname>..
<lastname>..
<dob>..
<address>..
</person>
</employees>
Write the xslt using the xpath expressions to find all nodes in
decendent access + the context node,context node is the first person element.
6.what si a predicate in an xpath expression give example.
7.write a line for each of the following xpath functions:
position()
translate()
starts-with()
8.Given an xml as shown below
<?xml..>
<bookstore>
<book catagory="cooking">
<title>..</title>
<author>..</author>
<year>..
</book>
<book catagory="web">
<title>..</title>
<author>..</author>
<year>..
</book>
<book catagory="children">
<title>..</title>
<author>..</author>
<year>..</year>
</book>
<book catagory="web">
<title>..</title>
<author>..</author>
<year>..
</book>
</bookstore>
write an xquery to generate the following o/p
<book count="3">
<book>
<title author="">..</title>
</book>
<book>
<title author="">..</title>
</book>
<book>
<title author="">..</title>
</book>
<book>
Display only those books whose year is greater than 2005
Books hav to be ordered by catagory(accending)
Where ever the catagory is same for books elements they have to be
ordered by title(decending)
-4
9.Write an xml documnt and corresponding xml schema doc for the following
requirement.
*root elem purchase order has attribute name "ordered" type is
string(required).Pattern is PID followed by 6 digits.(ex: orderid="PID123456")
*purchase order has sequence in following order ..
order person(type:String) ,
shippedto(String),
item(occurs atleast once and has following
sequence:
itemtype(type:enumeraton possible values are book,electronics,furniture
default:book),
itemcode(type:string pattern: 3chars upper and lower case alphabets and
digts ..... second part is '-' followed by exactly 5 digits),
description(type:string occurs 0/1 times),
Quantity(type:positiveinteger range:5-100).

Más contenido relacionado

La actualidad más candente

Lecture19 unionsin c.ppt
Lecture19 unionsin c.pptLecture19 unionsin c.ppt
Lecture19 unionsin c.ppt
eShikshak
 
b - Normalizing a Data Model
b - Normalizing a Data Modelb - Normalizing a Data Model
b - Normalizing a Data Model
Dimara Hakim
 

La actualidad más candente (20)

Programming in C session 3
Programming in C session 3Programming in C session 3
Programming in C session 3
 
Introduction linked list
Introduction linked listIntroduction linked list
Introduction linked list
 
CP01.pptx
CP01.pptxCP01.pptx
CP01.pptx
 
Structures in c programming
Structures in c programmingStructures in c programming
Structures in c programming
 
C Structures & Unions
C Structures & UnionsC Structures & Unions
C Structures & Unions
 
Structure prespentation
Structure prespentation Structure prespentation
Structure prespentation
 
Union In language C
Union In language CUnion In language C
Union In language C
 
Lecture19 unionsin c.ppt
Lecture19 unionsin c.pptLecture19 unionsin c.ppt
Lecture19 unionsin c.ppt
 
Structures in c language
Structures in c languageStructures in c language
Structures in c language
 
b - Normalizing a Data Model
b - Normalizing a Data Modelb - Normalizing a Data Model
b - Normalizing a Data Model
 
Dbms
DbmsDbms
Dbms
 
Lk module4 structures
Lk module4 structuresLk module4 structures
Lk module4 structures
 
Mis 582 exam
Mis 582 examMis 582 exam
Mis 582 exam
 
Structure & Union in C++
Structure & Union in C++Structure & Union in C++
Structure & Union in C++
 
CPU : Structures And Unions
CPU : Structures And UnionsCPU : Structures And Unions
CPU : Structures And Unions
 
Union in C programming
Union in C programmingUnion in C programming
Union in C programming
 
Str
StrStr
Str
 
Oracle interview questions
Oracle interview questionsOracle interview questions
Oracle interview questions
 
Revision notes for exam 2011 computer science with C++
Revision notes for exam 2011 computer science with C++Revision notes for exam 2011 computer science with C++
Revision notes for exam 2011 computer science with C++
 
Data Structures
Data StructuresData Structures
Data Structures
 

Destacado (13)

About FPG EN UPDATED
About FPG EN UPDATEDAbout FPG EN UPDATED
About FPG EN UPDATED
 
Finley's fund press release final 2015 04
Finley's fund press release final 2015 04Finley's fund press release final 2015 04
Finley's fund press release final 2015 04
 
AirStream
AirStreamAirStream
AirStream
 
Ptimat human madi
Ptimat human madiPtimat human madi
Ptimat human madi
 
Primats mandi3
Primats mandi3Primats mandi3
Primats mandi3
 
Primats mandi4
Primats mandi4Primats mandi4
Primats mandi4
 
20150422121144
2015042212114420150422121144
20150422121144
 
Economy hajj packages 2016
Economy hajj packages 2016Economy hajj packages 2016
Economy hajj packages 2016
 
Rockiin uskomme
Rockiin uskommeRockiin uskomme
Rockiin uskomme
 
Aresco - provincia de Mendoza
Aresco - provincia de MendozaAresco - provincia de Mendoza
Aresco - provincia de Mendoza
 
Presentación Politécnico de la Costa Atlántica
Presentación Politécnico de la Costa AtlánticaPresentación Politécnico de la Costa Atlántica
Presentación Politécnico de la Costa Atlántica
 
Primats mandi1 2
Primats mandi1 2Primats mandi1 2
Primats mandi1 2
 
Дмитрий Иванович Яворницкий (1855 — 1940)
Дмитрий Иванович Яворницкий (1855 — 1940)Дмитрий Иванович Яворницкий (1855 — 1940)
Дмитрий Иванович Яворницкий (1855 — 1940)
 

Similar a Impquest2

eXtensible Markup Language
eXtensible Markup LanguageeXtensible Markup Language
eXtensible Markup Language
Aditya Raj
 

Similar a Impquest2 (20)

Basics of XML
Basics of XMLBasics of XML
Basics of XML
 
Oracle soa xml faq
Oracle soa xml faqOracle soa xml faq
Oracle soa xml faq
 
Xml viva questions
Xml viva questionsXml viva questions
Xml viva questions
 
5010
50105010
5010
 
distributed system concerned lab sessions
distributed system concerned lab sessionsdistributed system concerned lab sessions
distributed system concerned lab sessions
 
Enhanced xml validation using srml01
Enhanced xml validation using srml01Enhanced xml validation using srml01
Enhanced xml validation using srml01
 
eXtensible Markup Language
eXtensible Markup LanguageeXtensible Markup Language
eXtensible Markup Language
 
XML Schema.pptx
XML Schema.pptxXML Schema.pptx
XML Schema.pptx
 
Full xml
Full xmlFull xml
Full xml
 
Er2000
Er2000Er2000
Er2000
 
Advanced Web Programming Chapter 12
Advanced Web Programming Chapter 12Advanced Web Programming Chapter 12
Advanced Web Programming Chapter 12
 
Innovative way for normalizing xml document
Innovative way for normalizing xml documentInnovative way for normalizing xml document
Innovative way for normalizing xml document
 
Introduction to xml schema
Introduction to xml schemaIntroduction to xml schema
Introduction to xml schema
 
Unit2_XML_S_SS_US Data_CS19414.pptx
Unit2_XML_S_SS_US Data_CS19414.pptxUnit2_XML_S_SS_US Data_CS19414.pptx
Unit2_XML_S_SS_US Data_CS19414.pptx
 
Xsd
XsdXsd
Xsd
 
Xsd
XsdXsd
Xsd
 
XML1.pptx
XML1.pptxXML1.pptx
XML1.pptx
 
IT6801-Service Oriented Architecture
IT6801-Service Oriented ArchitectureIT6801-Service Oriented Architecture
IT6801-Service Oriented Architecture
 
Web data management (chapter-1)
Web data management (chapter-1)Web data management (chapter-1)
Web data management (chapter-1)
 
XML - Data Modeling
XML - Data ModelingXML - Data Modeling
XML - Data Modeling
 

Más de roopa_slide (6)

Class 1-course introduction
Class 1-course introductionClass 1-course introduction
Class 1-course introduction
 
Activity
ActivityActivity
Activity
 
Roopa 21:48
Roopa 21:48Roopa 21:48
Roopa 21:48
 
Activity
ActivityActivity
Activity
 
roopa doc 13:54
roopa doc 13:54roopa doc 13:54
roopa doc 13:54
 
Roopa Document 3
Roopa Document 3Roopa Document 3
Roopa Document 3
 

Último

怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
eeanqy
 
一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证
一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证
一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证
eqaqen
 
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
CristineGraceAcuyan
 
Jual Obat Aborsi Bandung ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan ...
Jual Obat Aborsi Bandung ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan ...Jual Obat Aborsi Bandung ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan ...
Jual Obat Aborsi Bandung ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan ...
ZurliaSoop
 
Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...
gajnagarg
 
Minimalist Orange Portfolio by Slidesgo.pptx
Minimalist Orange Portfolio by Slidesgo.pptxMinimalist Orange Portfolio by Slidesgo.pptx
Minimalist Orange Portfolio by Slidesgo.pptx
balqisyamutia
 
How to Build a Simple Shopify Website
How to Build a Simple Shopify WebsiteHow to Build a Simple Shopify Website
How to Build a Simple Shopify Website
mark11275
 
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
wpkuukw
 
Simple Conference Style Presentation by Slidesgo.pptx
Simple Conference Style Presentation by Slidesgo.pptxSimple Conference Style Presentation by Slidesgo.pptx
Simple Conference Style Presentation by Slidesgo.pptx
balqisyamutia
 
Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...
gajnagarg
 
Top profile Call Girls In Meerut [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Meerut [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Meerut [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Meerut [ 7014168258 ] Call Me For Genuine Models We...
gajnagarg
 
Design-System - FinTech - Isadora Agency
Design-System - FinTech - Isadora AgencyDesign-System - FinTech - Isadora Agency
Design-System - FinTech - Isadora Agency
Isadora Agency
 
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
eeanqy
 

Último (20)

怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
 
一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证
一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证
一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证
 
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
 
Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...
Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...
Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...
 
Jual Obat Aborsi Bandung ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan ...
Jual Obat Aborsi Bandung ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan ...Jual Obat Aborsi Bandung ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan ...
Jual Obat Aborsi Bandung ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan ...
 
Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...
 
Minimalist Orange Portfolio by Slidesgo.pptx
Minimalist Orange Portfolio by Slidesgo.pptxMinimalist Orange Portfolio by Slidesgo.pptx
Minimalist Orange Portfolio by Slidesgo.pptx
 
How to Build a Simple Shopify Website
How to Build a Simple Shopify WebsiteHow to Build a Simple Shopify Website
How to Build a Simple Shopify Website
 
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
 
Simple Conference Style Presentation by Slidesgo.pptx
Simple Conference Style Presentation by Slidesgo.pptxSimple Conference Style Presentation by Slidesgo.pptx
Simple Conference Style Presentation by Slidesgo.pptx
 
Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...
 
LANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEK
LANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEKLANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEK
LANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEK
 
Top profile Call Girls In Meerut [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Meerut [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Meerut [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Meerut [ 7014168258 ] Call Me For Genuine Models We...
 
Call Girls Jalaun Just Call 8617370543 Top Class Call Girl Service Available
Call Girls Jalaun Just Call 8617370543 Top Class Call Girl Service AvailableCall Girls Jalaun Just Call 8617370543 Top Class Call Girl Service Available
Call Girls Jalaun Just Call 8617370543 Top Class Call Girl Service Available
 
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
 
Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
 
Design-System - FinTech - Isadora Agency
Design-System - FinTech - Isadora AgencyDesign-System - FinTech - Isadora Agency
Design-System - FinTech - Isadora Agency
 
Eye-Catching Web Design Crafting User Interfaces .docx
Eye-Catching Web Design Crafting User Interfaces .docxEye-Catching Web Design Crafting User Interfaces .docx
Eye-Catching Web Design Crafting User Interfaces .docx
 
High Profile Escorts Nerul WhatsApp +91-9930687706, Best Service
High Profile Escorts Nerul WhatsApp +91-9930687706, Best ServiceHigh Profile Escorts Nerul WhatsApp +91-9930687706, Best Service
High Profile Escorts Nerul WhatsApp +91-9930687706, Best Service
 
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
 

Impquest2

  • 1. 1.Design a detailed xml schema for managing campus placement data including constraints -8 such as a studnt being able to get only one t1/t2 offer,not being able to attend interviews after accepting an offer. 2.create 2 diff ns having common name for elements and show how ns can b used in the xml doc which uses both the ns. - 10 how is this situation handled in relational databases 3.how is data in xml different from data from relational databases tables. -4 4.what are the limitations of DTD?Show how these limitations are overcommed in ML Schema.Illustrate with examples. -10 5.Given an XML <employees> <person> <firstname>.. <lastname>.. <dob>.. <address>.. </person> <person> <firstname>.. <lastname>.. <dob>.. <address>.. </person> </employees> Write the xslt using the xpath expressions to find all nodes in decendent access + the context node,context node is the first person element. 6.what si a predicate in an xpath expression give example. 7.write a line for each of the following xpath functions: position() translate() starts-with() 8.Given an xml as shown below <?xml..> <bookstore> <book catagory="cooking"> <title>..</title> <author>..</author> <year>.. </book> <book catagory="web"> <title>..</title> <author>..</author> <year>.. </book> <book catagory="children"> <title>..</title> <author>..</author> <year>..</year> </book> <book catagory="web"> <title>..</title> <author>..</author> <year>.. </book>
  • 2. </bookstore> write an xquery to generate the following o/p <book count="3"> <book> <title author="">..</title> </book> <book> <title author="">..</title> </book> <book> <title author="">..</title> </book> <book> Display only those books whose year is greater than 2005 Books hav to be ordered by catagory(accending) Where ever the catagory is same for books elements they have to be ordered by title(decending) -4 9.Write an xml documnt and corresponding xml schema doc for the following requirement. *root elem purchase order has attribute name "ordered" type is string(required).Pattern is PID followed by 6 digits.(ex: orderid="PID123456") *purchase order has sequence in following order .. order person(type:String) , shippedto(String), item(occurs atleast once and has following sequence: itemtype(type:enumeraton possible values are book,electronics,furniture default:book), itemcode(type:string pattern: 3chars upper and lower case alphabets and digts ..... second part is '-' followed by exactly 5 digits), description(type:string occurs 0/1 times), Quantity(type:positiveinteger range:5-100).