SlideShare uma empresa Scribd logo
1 de 7
Baixar para ler offline
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>

Mais conteúdo relacionado

Semelhante a Converting dt ds to xml schemas

Seo cheat sheet
Seo cheat sheetSeo cheat sheet
Seo cheat sheetRohan Jha
 
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
 
20190118_NetadashiMeetup#8_React2019
20190118_NetadashiMeetup#8_React201920190118_NetadashiMeetup#8_React2019
20190118_NetadashiMeetup#8_React2019Makoto Mori
 
关于 Html5 那点事
关于 Html5 那点事关于 Html5 那点事
关于 Html5 那点事Sofish Lin
 
Enhancing mobile applications with Windows Azure
Enhancing mobile applications with Windows AzureEnhancing mobile applications with Windows Azure
Enhancing mobile applications with Windows AzureKarl Ots
 
HTML - hypertext markup language
HTML - hypertext markup languageHTML - hypertext markup language
HTML - hypertext markup languageBasmaa Mostafa
 

Semelhante a Converting dt ds to xml schemas (20)

Seo cheat sheet
Seo cheat sheetSeo cheat sheet
Seo cheat sheet
 
Seo cheat sheet
Seo cheat sheetSeo cheat sheet
Seo cheat sheet
 
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
 
Seo Cheat Sheet
Seo Cheat SheetSeo Cheat Sheet
Seo Cheat Sheet
 
Seo cheat-sheet
Seo cheat-sheetSeo cheat-sheet
Seo cheat-sheet
 
JS-05-Handlebars.ppt
JS-05-Handlebars.pptJS-05-Handlebars.ppt
JS-05-Handlebars.ppt
 
Enjoy the vue.js
Enjoy the vue.jsEnjoy the vue.js
Enjoy the vue.js
 
Vaadin Components @ Angular U
Vaadin Components @ Angular UVaadin Components @ Angular U
Vaadin Components @ Angular U
 
HTML5 Essentials
HTML5 EssentialsHTML5 Essentials
HTML5 Essentials
 
RSS Like A Ninja
RSS Like A NinjaRSS Like A Ninja
RSS Like A Ninja
 
Site optimization
Site optimizationSite optimization
Site optimization
 
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
 
20190118_NetadashiMeetup#8_React2019
20190118_NetadashiMeetup#8_React201920190118_NetadashiMeetup#8_React2019
20190118_NetadashiMeetup#8_React2019
 
Please dont touch-3.6-jsday
Please dont touch-3.6-jsdayPlease dont touch-3.6-jsday
Please dont touch-3.6-jsday
 
关于 Html5 那点事
关于 Html5 那点事关于 Html5 那点事
关于 Html5 那点事
 
Enhancing mobile applications with Windows Azure
Enhancing mobile applications with Windows AzureEnhancing mobile applications with Windows Azure
Enhancing mobile applications with Windows Azure
 
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 Hands On
Html Hands OnHtml Hands On
Html Hands On
 

Mais de Dr.Saranya K.G (12)

complete web service1.ppt
complete web service1.pptcomplete web service1.ppt
complete web service1.ppt
 
Introduction to Web Services Protocols.ppt
Introduction to Web Services Protocols.pptIntroduction to Web Services Protocols.ppt
Introduction to Web Services Protocols.ppt
 
1.Usability Engineering.pptx
1.Usability Engineering.pptx1.Usability Engineering.pptx
1.Usability Engineering.pptx
 
CSSE375-03-framework.ppt
CSSE375-03-framework.pptCSSE375-03-framework.ppt
CSSE375-03-framework.ppt
 
SQA.ppt
SQA.pptSQA.ppt
SQA.ppt
 
Neo4 j
Neo4 jNeo4 j
Neo4 j
 
Xquery1
Xquery1Xquery1
Xquery1
 
Xsl xslt
Xsl  xsltXsl  xslt
Xsl xslt
 
Xpath1
Xpath1Xpath1
Xpath1
 
Dtd
DtdDtd
Dtd
 
Xml schema
Xml schemaXml schema
Xml schema
 
1 xml fundamentals
1 xml fundamentals1 xml fundamentals
1 xml fundamentals
 

Último

Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgsaravananr517913
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadaditya806802
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
National Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfNational Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfRajuKanojiya4
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating SystemRashmi Bhat
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptNarmatha D
 
The SRE Report 2024 - Great Findings for the teams
The SRE Report 2024 - Great Findings for the teamsThe SRE Report 2024 - Great Findings for the teams
The SRE Report 2024 - Great Findings for the teamsDILIPKUMARMONDAL6
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating SystemRashmi Bhat
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 

Último (20)

Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasad
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
National Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfNational Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdf
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating System
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.ppt
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
The SRE Report 2024 - Great Findings for the teams
The SRE Report 2024 - Great Findings for the teamsThe SRE Report 2024 - Great Findings for the teams
The SRE Report 2024 - Great Findings for the teams
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating System
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 

Converting dt ds to xml schemas

  • 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>