SlideShare une entreprise Scribd logo
1  sur  7
Télécharger pour lire hors ligne
Prepared By: Dr.Saranya K.G
Converting DTDs to XML Schemas
<!ELEMENT rss (channel)>
<!ATTLIST rss
version CDATA #REQUIRED> <!-- must be "0.91"> -->
<!ELEMENT channel (title | description | link | language | item+ | rating? | image? |
textinput? | copyright? | pubDate? | lastBuildDate? | docs? | managingEditor? |
webMaster? | skipHours? | skipDays?)*>
<!ELEMENT title (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT link (#PCDATA)>
<!ELEMENT image (title | url | link | width? | height? | description?)*>
<!ELEMENT url (#PCDATA)>
<!ELEMENT item (title | link | description)*>
<!ELEMENT textinput (title | description | name | link)*>
<!ELEMENT name (#PCDATA)>
<!ELEMENT rating (#PCDATA)>
<!ELEMENT language (#PCDATA)>
<!ELEMENT width (#PCDATA)>
<!ELEMENT height (#PCDATA)>
<!ELEMENT copyright (#PCDATA)>
<!ELEMENT pubDate (#PCDATA)>
<!ELEMENT lastBuildDate (#PCDATA)>
<!ELEMENT docs (#PCDATA)>
<!ELEMENT managingEditor (#PCDATA)>
<!ELEMENT webMaster (#PCDATA)>
<!ELEMENT hour (#PCDATA)>
<!ELEMENT day (#PCDATA)>
<!ELEMENT skipHours (hour+)>
<!ELEMENT skipDays (day+)>
Prepared By: Dr.Saranya K.G
<schema
xmlns='http://www.w3.org/1999/XMLSchema'
targetNamespace='http://purl.org/rss/0.91'
xmlns:rss='http://purl.org/rss/0.91'>
<element name='rss'>
<complexType content='elementOnly'>
<element ref='rss:channel'/>
<attribute name='version' type='string' use='required'/>
</complexType>
</element>
<element name='channel'>
<complexType content='elementOnly'>
<choice minOccurs='0' maxOccurs='unbounded'>
<element ref='rss:title'/>
<element ref='rss:description'/>
<element ref='rss:link'/>
<element ref='rss:language'/>
<element ref='rss:item'/>
<element ref='rss:+'/>
<element ref='rss:rating'/>
<element ref='rss:?'/>
<element ref='rss:image'/>
<element ref='rss:?'/>
<element ref='rss:textinput'/>
<element ref='rss:?'/>
<element ref='rss:copyright'/>
<element ref='rss:?'/>
<element ref='rss:pubDate'/>
<element ref='rss:?'/>
<element ref='rss:lastBuildDate'/>
<element ref='rss:?'/>
<element ref='rss:docs'/>
<element ref='rss:?'/>
<element ref='rss:managingEditor'/>
<element ref='rss:?'/>
<element ref='rss:webMaster'/>
<element ref='rss:?'/>
<element ref='rss:skipHours'/>
<element ref='rss:?'/>
<element ref='rss:skipDays'/>
<element ref='rss:?'/>
</choice>
</complexType>
Prepared By: Dr.Saranya K.G
</element>
<element name='title'>
<complexType content='mixed'>
</complexType>
</element>
<element name='description'>
<complexType content='mixed'>
</complexType>
</element>
<element name='link'>
<complexType content='mixed'>
</complexType>
</element>
<element name='image'>
<complexType content='elementOnly'>
<choice minOccurs='0' maxOccurs='unbounded'>
<element ref='rss:title'/>
<element ref='rss:url'/>
<element ref='rss:link'/>
<element ref='rss:width'/>
<element ref='rss:?'/>
<element ref='rss:height'/>
<element ref='rss:?'/>
<element ref='rss:description'/>
<element ref='rss:?'/>
</choice>
</complexType>
</element>
<element name='url'>
<complexType content='mixed'>
</complexType>
</element>
<element name='item'>
<complexType content='elementOnly'>
<choice minOccurs='0' maxOccurs='unbounded'>
<element ref='rss:title'/>
<element ref='rss:link'/>
<element ref='rss:description'/>
</choice>
</complexType>
Prepared By: Dr.Saranya K.G
</element>
<element name='textinput'>
<complexType content='elementOnly'>
<choice minOccurs='0' maxOccurs='unbounded'>
<element ref='rss:title'/>
<element ref='rss:description'/>
<element ref='rss:name'/>
<element ref='rss:link'/>
</choice>
</complexType>
</element>
<element name='name'>
<complexType content='mixed'>
</complexType>
</element>
<element name='rating'>
<complexType content='mixed'>
</complexType>
</element>
<element name='language'>
<complexType content='mixed'>
</complexType>
</element>
<element name='width'>
<complexType content='mixed'>
</complexType>
</element>
<element name='height'>
<complexType content='mixed'>
</complexType>
</element>
<element name='copyright'>
<complexType content='mixed'>
</complexType>
</element>
<element name='pubDate'>
<complexType content='mixed'>
</complexType>
Prepared By: Dr.Saranya K.G
</element>
<element name='lastBuildDate'>
<complexType content='mixed'>
</complexType>
</element>
<element name='docs'>
<complexType content='mixed'>
</complexType>
</element>
<element name='managingEditor'>
<complexType content='mixed'>
</complexType>
</element>
<element name='webMaster'>
<complexType content='mixed'>
</complexType>
</element>
<element name='hour'>
<complexType content='mixed'>
</complexType>
</element>
<element name='day'>
<complexType content='mixed'>
</complexType>
</element>
<element name='skipHours'>
<complexType content='elementOnly'>
<element ref='rss:hour' maxOccurs='unbounded'/>
</complexType>
</element>
<element name='skipDays'>
<complexType content='elementOnly'>
<element ref='rss:day' maxOccurs='unbounded'/>
</complexType>
</element>
</schema>
Prepared By: Dr.Saranya K.G
Sample DTD
<!ELEMENT root (foo|(bar,baz)+)*>
<!ATTLIST root version CDATA #FIXED '1.0'>
<!ELEMENT foo EMPTY>
<!ELEMENT bar (#PCDATA)>
<!ELEMENT baz (#PCDATA|mumble)*>
<!ELEMENT mumble ANY>
XML Schema grammar:
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Generated from data/dtd/test.dtd -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!-- <!ELEMENT root (foo|(bar,baz)+)*> -->
<xsd:element name="root">
<xsd:complexType>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element ref="foo" />
<xsd:sequence minOccurs="1" maxOccurs="unbounded">
<xsd:element ref="bar" />
<xsd:element ref="baz" />
</xsd:sequence>
</xsd:choice>
<!-- <!ATTLIST root version CDATA #FIXED "1.0"> -->
<xsd:attribute name="version" fixed="1.0">
<xsd:simpleType>
<xsd:restriction base="xsd:string" />
Prepared By: Dr.Saranya K.G
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
...
</xsd:schema>

Contenu connexe

Similaire à Converting DTDs to XML Schemas.pdf

Enjoy the vue.js
Enjoy the vue.jsEnjoy the vue.js
Enjoy the vue.jsTechExeter
 
Vaadin Components @ Angular U
Vaadin Components @ Angular UVaadin Components @ Angular U
Vaadin Components @ Angular UJoonas Lehtinen
 
Why You Should be Using Web Components Right Now. And How. ForwardJS July 2015
Why You Should be Using Web Components Right Now. And How. ForwardJS July 2015Why You Should be Using Web Components Right Now. And How. ForwardJS July 2015
Why You Should be Using Web Components Right Now. And How. ForwardJS July 2015Phil Leggetter
 
Enhancing mobile applications with Windows Azure
Enhancing mobile applications with Windows AzureEnhancing mobile applications with Windows Azure
Enhancing mobile applications with Windows AzureKarl Ots
 
20190118_NetadashiMeetup#8_React2019
20190118_NetadashiMeetup#8_React201920190118_NetadashiMeetup#8_React2019
20190118_NetadashiMeetup#8_React2019Makoto Mori
 
关于 Html5 那点事
关于 Html5 那点事关于 Html5 那点事
关于 Html5 那点事Sofish Lin
 
HTML - hypertext markup language
HTML - hypertext markup languageHTML - hypertext markup language
HTML - hypertext markup languageBasmaa Mostafa
 
HTML Attributes.pptx
HTML Attributes.pptxHTML Attributes.pptx
HTML Attributes.pptxSteins18
 
Microformats, Institute of Engineering and Technology
Microformats, Institute of Engineering and TechnologyMicroformats, Institute of Engineering and Technology
Microformats, Institute of Engineering and TechnologyNishikant Taksande
 
My project working well, but there no relationship between the t.docx
My project working well, but there no relationship between the t.docxMy project working well, but there no relationship between the t.docx
My project working well, but there no relationship between the t.docxrosemarybdodson23141
 

Similaire à Converting DTDs to XML Schemas.pdf (20)

Seo cheat-sheet
Seo cheat-sheetSeo cheat-sheet
Seo cheat-sheet
 
Seo onpage for Developer
Seo onpage for DeveloperSeo onpage for Developer
Seo onpage for Developer
 
Enjoy the vue.js
Enjoy the vue.jsEnjoy the vue.js
Enjoy the vue.js
 
Seo Cheat Sheet
Seo Cheat SheetSeo Cheat Sheet
Seo Cheat Sheet
 
Seo cheat-sheet
Seo cheat-sheetSeo cheat-sheet
Seo cheat-sheet
 
Vaadin Components @ Angular U
Vaadin Components @ Angular UVaadin Components @ Angular U
Vaadin Components @ Angular U
 
HTML5 Essentials
HTML5 EssentialsHTML5 Essentials
HTML5 Essentials
 
Why You Should be Using Web Components Right Now. And How. ForwardJS July 2015
Why You Should be Using Web Components Right Now. And How. ForwardJS July 2015Why You Should be Using Web Components Right Now. And How. ForwardJS July 2015
Why You Should be Using Web Components Right Now. And How. ForwardJS July 2015
 
RSS Like A Ninja
RSS Like A NinjaRSS Like A Ninja
RSS Like A Ninja
 
Site optimization
Site optimizationSite optimization
Site optimization
 
Enhancing mobile applications with Windows Azure
Enhancing mobile applications with Windows AzureEnhancing mobile applications with Windows Azure
Enhancing mobile applications with Windows Azure
 
Please dont touch-3.6-jsday
Please dont touch-3.6-jsdayPlease dont touch-3.6-jsday
Please dont touch-3.6-jsday
 
20190118_NetadashiMeetup#8_React2019
20190118_NetadashiMeetup#8_React201920190118_NetadashiMeetup#8_React2019
20190118_NetadashiMeetup#8_React2019
 
关于 Html5 那点事
关于 Html5 那点事关于 Html5 那点事
关于 Html5 那点事
 
HTML By K.Sasidhar
HTML By K.SasidharHTML By K.Sasidhar
HTML By K.Sasidhar
 
HTML - hypertext markup language
HTML - hypertext markup languageHTML - hypertext markup language
HTML - hypertext markup language
 
HTML Attributes.pptx
HTML Attributes.pptxHTML Attributes.pptx
HTML Attributes.pptx
 
Microformats, Institute of Engineering and Technology
Microformats, Institute of Engineering and TechnologyMicroformats, Institute of Engineering and Technology
Microformats, Institute of Engineering and Technology
 
Html Hands On
Html Hands OnHtml Hands On
Html Hands On
 
My project working well, but there no relationship between the t.docx
My project working well, but there no relationship between the t.docxMy project working well, but there no relationship between the t.docx
My project working well, but there no relationship between the t.docx
 

Plus de KGSCSEPSGCT

Introduction to Distributed Systems
Introduction to Distributed SystemsIntroduction to Distributed Systems
Introduction to Distributed SystemsKGSCSEPSGCT
 
Unit4_Managing Contracts.ppt
Unit4_Managing Contracts.pptUnit4_Managing Contracts.ppt
Unit4_Managing Contracts.pptKGSCSEPSGCT
 
REST Introduction.ppt
REST Introduction.pptREST Introduction.ppt
REST Introduction.pptKGSCSEPSGCT
 
3-SchemaExamples.pdf
3-SchemaExamples.pdf3-SchemaExamples.pdf
3-SchemaExamples.pdfKGSCSEPSGCT
 
XML-INTRODUCTION.pdf
XML-INTRODUCTION.pdfXML-INTRODUCTION.pdf
XML-INTRODUCTION.pdfKGSCSEPSGCT
 

Plus de KGSCSEPSGCT (12)

Introduction to Distributed Systems
Introduction to Distributed SystemsIntroduction to Distributed Systems
Introduction to Distributed Systems
 
Unit4_Managing Contracts.ppt
Unit4_Managing Contracts.pptUnit4_Managing Contracts.ppt
Unit4_Managing Contracts.ppt
 
WSstandards.ppt
WSstandards.pptWSstandards.ppt
WSstandards.ppt
 
UDDI.ppt
UDDI.pptUDDI.ppt
UDDI.ppt
 
ROA.ppt
ROA.pptROA.ppt
ROA.ppt
 
REST Introduction.ppt
REST Introduction.pptREST Introduction.ppt
REST Introduction.ppt
 
3-SchemaExamples.pdf
3-SchemaExamples.pdf3-SchemaExamples.pdf
3-SchemaExamples.pdf
 
XSL- XSLT.pdf
XSL- XSLT.pdfXSL- XSLT.pdf
XSL- XSLT.pdf
 
XML-INTRODUCTION.pdf
XML-INTRODUCTION.pdfXML-INTRODUCTION.pdf
XML-INTRODUCTION.pdf
 
XSLT.ppt
XSLT.pptXSLT.ppt
XSLT.ppt
 
2-DTD.ppt
2-DTD.ppt2-DTD.ppt
2-DTD.ppt
 
XML Schema.pdf
XML Schema.pdfXML Schema.pdf
XML Schema.pdf
 

Dernier

Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfrs7054576148
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 

Dernier (20)

Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 

Converting DTDs to XML Schemas.pdf

  • 1. Prepared By: Dr.Saranya K.G Converting DTDs to XML Schemas <!ELEMENT rss (channel)> <!ATTLIST rss version CDATA #REQUIRED> <!-- must be "0.91"> --> <!ELEMENT channel (title | description | link | language | item+ | rating? | image? | textinput? | copyright? | pubDate? | lastBuildDate? | docs? | managingEditor? | webMaster? | skipHours? | skipDays?)*> <!ELEMENT title (#PCDATA)> <!ELEMENT description (#PCDATA)> <!ELEMENT link (#PCDATA)> <!ELEMENT image (title | url | link | width? | height? | description?)*> <!ELEMENT url (#PCDATA)> <!ELEMENT item (title | link | description)*> <!ELEMENT textinput (title | description | name | link)*> <!ELEMENT name (#PCDATA)> <!ELEMENT rating (#PCDATA)> <!ELEMENT language (#PCDATA)> <!ELEMENT width (#PCDATA)> <!ELEMENT height (#PCDATA)> <!ELEMENT copyright (#PCDATA)> <!ELEMENT pubDate (#PCDATA)> <!ELEMENT lastBuildDate (#PCDATA)> <!ELEMENT docs (#PCDATA)> <!ELEMENT managingEditor (#PCDATA)> <!ELEMENT webMaster (#PCDATA)> <!ELEMENT hour (#PCDATA)> <!ELEMENT day (#PCDATA)> <!ELEMENT skipHours (hour+)> <!ELEMENT skipDays (day+)>
  • 2. Prepared By: Dr.Saranya K.G <schema xmlns='http://www.w3.org/1999/XMLSchema' targetNamespace='http://purl.org/rss/0.91' xmlns:rss='http://purl.org/rss/0.91'> <element name='rss'> <complexType content='elementOnly'> <element ref='rss:channel'/> <attribute name='version' type='string' use='required'/> </complexType> </element> <element name='channel'> <complexType content='elementOnly'> <choice minOccurs='0' maxOccurs='unbounded'> <element ref='rss:title'/> <element ref='rss:description'/> <element ref='rss:link'/> <element ref='rss:language'/> <element ref='rss:item'/> <element ref='rss:+'/> <element ref='rss:rating'/> <element ref='rss:?'/> <element ref='rss:image'/> <element ref='rss:?'/> <element ref='rss:textinput'/> <element ref='rss:?'/> <element ref='rss:copyright'/> <element ref='rss:?'/> <element ref='rss:pubDate'/> <element ref='rss:?'/> <element ref='rss:lastBuildDate'/> <element ref='rss:?'/> <element ref='rss:docs'/> <element ref='rss:?'/> <element ref='rss:managingEditor'/> <element ref='rss:?'/> <element ref='rss:webMaster'/> <element ref='rss:?'/> <element ref='rss:skipHours'/> <element ref='rss:?'/> <element ref='rss:skipDays'/> <element ref='rss:?'/> </choice> </complexType>
  • 3. Prepared By: Dr.Saranya K.G </element> <element name='title'> <complexType content='mixed'> </complexType> </element> <element name='description'> <complexType content='mixed'> </complexType> </element> <element name='link'> <complexType content='mixed'> </complexType> </element> <element name='image'> <complexType content='elementOnly'> <choice minOccurs='0' maxOccurs='unbounded'> <element ref='rss:title'/> <element ref='rss:url'/> <element ref='rss:link'/> <element ref='rss:width'/> <element ref='rss:?'/> <element ref='rss:height'/> <element ref='rss:?'/> <element ref='rss:description'/> <element ref='rss:?'/> </choice> </complexType> </element> <element name='url'> <complexType content='mixed'> </complexType> </element> <element name='item'> <complexType content='elementOnly'> <choice minOccurs='0' maxOccurs='unbounded'> <element ref='rss:title'/> <element ref='rss:link'/> <element ref='rss:description'/> </choice> </complexType>
  • 4. Prepared By: Dr.Saranya K.G </element> <element name='textinput'> <complexType content='elementOnly'> <choice minOccurs='0' maxOccurs='unbounded'> <element ref='rss:title'/> <element ref='rss:description'/> <element ref='rss:name'/> <element ref='rss:link'/> </choice> </complexType> </element> <element name='name'> <complexType content='mixed'> </complexType> </element> <element name='rating'> <complexType content='mixed'> </complexType> </element> <element name='language'> <complexType content='mixed'> </complexType> </element> <element name='width'> <complexType content='mixed'> </complexType> </element> <element name='height'> <complexType content='mixed'> </complexType> </element> <element name='copyright'> <complexType content='mixed'> </complexType> </element> <element name='pubDate'> <complexType content='mixed'> </complexType>
  • 5. Prepared By: Dr.Saranya K.G </element> <element name='lastBuildDate'> <complexType content='mixed'> </complexType> </element> <element name='docs'> <complexType content='mixed'> </complexType> </element> <element name='managingEditor'> <complexType content='mixed'> </complexType> </element> <element name='webMaster'> <complexType content='mixed'> </complexType> </element> <element name='hour'> <complexType content='mixed'> </complexType> </element> <element name='day'> <complexType content='mixed'> </complexType> </element> <element name='skipHours'> <complexType content='elementOnly'> <element ref='rss:hour' maxOccurs='unbounded'/> </complexType> </element> <element name='skipDays'> <complexType content='elementOnly'> <element ref='rss:day' maxOccurs='unbounded'/> </complexType> </element> </schema>
  • 6. Prepared By: Dr.Saranya K.G Sample DTD <!ELEMENT root (foo|(bar,baz)+)*> <!ATTLIST root version CDATA #FIXED '1.0'> <!ELEMENT foo EMPTY> <!ELEMENT bar (#PCDATA)> <!ELEMENT baz (#PCDATA|mumble)*> <!ELEMENT mumble ANY> XML Schema grammar: <?xml version="1.0" encoding="UTF-8" ?> <!-- Generated from data/dtd/test.dtd --> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <!-- <!ELEMENT root (foo|(bar,baz)+)*> --> <xsd:element name="root"> <xsd:complexType> <xsd:choice minOccurs="0" maxOccurs="unbounded"> <xsd:element ref="foo" /> <xsd:sequence minOccurs="1" maxOccurs="unbounded"> <xsd:element ref="bar" /> <xsd:element ref="baz" /> </xsd:sequence> </xsd:choice> <!-- <!ATTLIST root version CDATA #FIXED "1.0"> --> <xsd:attribute name="version" fixed="1.0"> <xsd:simpleType> <xsd:restriction base="xsd:string" />
  • 7. Prepared By: Dr.Saranya K.G </xsd:simpleType> </xsd:attribute> </xsd:complexType> </xsd:element> ... </xsd:schema>