SlideShare a Scribd company logo
1 of 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).

More Related Content

What's hot

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
 

What's hot (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
 

Viewers also liked (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 to Impquest2

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

Similar to 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
 

More from 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
 

Recently uploaded

Knowing, Understanding and Planning Cities- Role and Relevance Physical Plan...
Knowing, Understanding and Planning Cities- Role and Relevance  Physical Plan...Knowing, Understanding and Planning Cities- Role and Relevance  Physical Plan...
Knowing, Understanding and Planning Cities- Role and Relevance Physical Plan...
JIT KUMAR GUPTA
 
一比一原版谢菲尔德大学毕业证成绩单如何办理
一比一原版谢菲尔德大学毕业证成绩单如何办理一比一原版谢菲尔德大学毕业证成绩单如何办理
一比一原版谢菲尔德大学毕业证成绩单如何办理
cyebo
 
Presentation on 3D Printing.pptx presentation
Presentation on 3D Printing.pptx presentationPresentation on 3D Printing.pptx presentation
Presentation on 3D Printing.pptx presentation
ajroy0196
 
Heuristic Evaluation of System & Application
Heuristic Evaluation of System & ApplicationHeuristic Evaluation of System & Application
Heuristic Evaluation of System & Application
Jaime Brown
 

Recently uploaded (20)

Dos And Dont's Of Logo Design For 2024..
Dos And Dont's Of Logo Design For 2024..Dos And Dont's Of Logo Design For 2024..
Dos And Dont's Of Logo Design For 2024..
 
Week of Action 2022_EIT Climate-KIC_Headers
Week of Action 2022_EIT Climate-KIC_HeadersWeek of Action 2022_EIT Climate-KIC_Headers
Week of Action 2022_EIT Climate-KIC_Headers
 
iF_Design_Trend_Report_twentytwenrythree
iF_Design_Trend_Report_twentytwenrythreeiF_Design_Trend_Report_twentytwenrythree
iF_Design_Trend_Report_twentytwenrythree
 
Recycled Modular Low Cost Construction .pdf
Recycled Modular Low Cost Construction .pdfRecycled Modular Low Cost Construction .pdf
Recycled Modular Low Cost Construction .pdf
 
spColumn-Manual design column by spcolumn software.pdf
spColumn-Manual design column by spcolumn software.pdfspColumn-Manual design column by spcolumn software.pdf
spColumn-Manual design column by spcolumn software.pdf
 
Abdulaziz Tariq Abdulaziz Mustafa CV 2024
Abdulaziz Tariq Abdulaziz Mustafa CV 2024Abdulaziz Tariq Abdulaziz Mustafa CV 2024
Abdulaziz Tariq Abdulaziz Mustafa CV 2024
 
The Impact of Artificial Intelligence on Modern Healthcare.pptx
The Impact of Artificial Intelligence on Modern Healthcare.pptxThe Impact of Artificial Intelligence on Modern Healthcare.pptx
The Impact of Artificial Intelligence on Modern Healthcare.pptx
 
Spring 2024 wkrm_Enhancing Campus Mobility.pdf
Spring 2024 wkrm_Enhancing Campus Mobility.pdfSpring 2024 wkrm_Enhancing Campus Mobility.pdf
Spring 2024 wkrm_Enhancing Campus Mobility.pdf
 
Knowing, Understanding and Planning Cities- Role and Relevance Physical Plan...
Knowing, Understanding and Planning Cities- Role and Relevance  Physical Plan...Knowing, Understanding and Planning Cities- Role and Relevance  Physical Plan...
Knowing, Understanding and Planning Cities- Role and Relevance Physical Plan...
 
NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...
NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...
NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...
 
Heidi Livengood's Professional CADD Portfolio
Heidi Livengood's Professional CADD PortfolioHeidi Livengood's Professional CADD Portfolio
Heidi Livengood's Professional CADD Portfolio
 
Design lessons from Singapore | Volume 3
Design lessons from Singapore | Volume 3Design lessons from Singapore | Volume 3
Design lessons from Singapore | Volume 3
 
Claire's designing portfolio presentation
Claire's designing portfolio presentationClaire's designing portfolio presentation
Claire's designing portfolio presentation
 
Eric Parein CV. Parein in English is best pronounced as PARE-IN
Eric Parein CV. Parein in English is best pronounced as PARE-INEric Parein CV. Parein in English is best pronounced as PARE-IN
Eric Parein CV. Parein in English is best pronounced as PARE-IN
 
一比一原版谢菲尔德大学毕业证成绩单如何办理
一比一原版谢菲尔德大学毕业证成绩单如何办理一比一原版谢菲尔德大学毕业证成绩单如何办理
一比一原版谢菲尔德大学毕业证成绩单如何办理
 
Design Portofolios - Licensed Architect / BIM Specialist
Design Portofolios - Licensed Architect / BIM SpecialistDesign Portofolios - Licensed Architect / BIM Specialist
Design Portofolios - Licensed Architect / BIM Specialist
 
Presentation on 3D Printing.pptx presentation
Presentation on 3D Printing.pptx presentationPresentation on 3D Printing.pptx presentation
Presentation on 3D Printing.pptx presentation
 
FW25-26 Fashion Key Items Trend Book Peclers Paris
FW25-26 Fashion Key Items Trend Book Peclers ParisFW25-26 Fashion Key Items Trend Book Peclers Paris
FW25-26 Fashion Key Items Trend Book Peclers Paris
 
Heuristic Evaluation of System & Application
Heuristic Evaluation of System & ApplicationHeuristic Evaluation of System & Application
Heuristic Evaluation of System & Application
 
BIT Khushi gandhi project.pdf graphic design
BIT Khushi gandhi project.pdf graphic designBIT Khushi gandhi project.pdf graphic design
BIT Khushi gandhi project.pdf graphic design
 

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).