SlideShare a Scribd company logo
DTD A Document Type Definition            =A set of structural rules, declarations Use of DTD : impose uniform style sheet in external style sheet for XHTML  Application program for testing document against the DTD
Internal , external DTD Internal DTD : embedded in the XML document  External DTD stored in a separate file ,[object Object]
To avoid two different notations in the same document for debugging.,[object Object]
Declaring Elements <!ELEMENT element_name (list of names of child elements)> Example) <!ELEMENT memo (from, to, data, re, body)>
Tree structure memo from to data re body Leaf node, internal node :     character pattern or a list of its child elements
Child element specification modifiers <!ELEMENT person (parent+, age, spouse?, sibling*)
Parsable character data a string of any printable character except less than(<), greater than(>), and ampersand(&). <!ELEMENT element_name(#PCDATA)> <!ELEMENT b (#PCDATA)>  <!ELEMENT p (#PCDATA|a|b)*>  EMPTY and ANY

More Related Content

What's hot

Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
Gtu Booker
 
XML's validation - DTD
XML's validation - DTDXML's validation - DTD
XML's validation - DTD
videde_group
 
01 xml document structure
01 xml document structure01 xml document structure
01 xml document structure
Baskarkncet
 
XML Schema
XML SchemaXML Schema
XML Schema
yht4ever
 
DTD
DTDDTD
Xml Presentation-3
Xml Presentation-3Xml Presentation-3
Xml Presentation-3Sudharsan S
 
Xml schema
Xml schemaXml schema
Xml schema
Akshaya Akshaya
 
2 dtd - validating xml documents
2   dtd - validating xml documents2   dtd - validating xml documents
2 dtd - validating xml documents
gauravashq
 
XML, DTD & XSD Overview
XML, DTD & XSD OverviewXML, DTD & XSD Overview
XML, DTD & XSD Overview
Pradeep Rapolu
 
DTD
DTDDTD
DTD
Kumar
 
03 namespace
03 namespace03 namespace
03 namespace
Baskarkncet
 
Sgml and xml
Sgml and xmlSgml and xml
Sgml and xml
Jaya Kumari
 
02 xml schema
02 xml schema02 xml schema
02 xml schema
Baskarkncet
 
Extensible Markup Language (XML)
Extensible Markup Language (XML)Extensible Markup Language (XML)
Extensible Markup Language (XML)
AakankshaR
 
Xml Presentation-1
Xml Presentation-1Xml Presentation-1
Xml Presentation-1Sudharsan S
 
Xml schema
Xml schemaXml schema
Xml schema
Harry Potter
 
Xml presentation
Xml presentationXml presentation
Xml presentation
Miguel Angel Teheran Garcia
 

What's hot (20)

Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
Dtd
DtdDtd
Dtd
 
XML's validation - DTD
XML's validation - DTDXML's validation - DTD
XML's validation - DTD
 
Intro to xml
Intro to xmlIntro to xml
Intro to xml
 
01 xml document structure
01 xml document structure01 xml document structure
01 xml document structure
 
Xml by Luqman
Xml by LuqmanXml by Luqman
Xml by Luqman
 
XML Schema
XML SchemaXML Schema
XML Schema
 
DTD
DTDDTD
DTD
 
Xml Presentation-3
Xml Presentation-3Xml Presentation-3
Xml Presentation-3
 
Xml schema
Xml schemaXml schema
Xml schema
 
2 dtd - validating xml documents
2   dtd - validating xml documents2   dtd - validating xml documents
2 dtd - validating xml documents
 
XML, DTD & XSD Overview
XML, DTD & XSD OverviewXML, DTD & XSD Overview
XML, DTD & XSD Overview
 
DTD
DTDDTD
DTD
 
03 namespace
03 namespace03 namespace
03 namespace
 
Sgml and xml
Sgml and xmlSgml and xml
Sgml and xml
 
02 xml schema
02 xml schema02 xml schema
02 xml schema
 
Extensible Markup Language (XML)
Extensible Markup Language (XML)Extensible Markup Language (XML)
Extensible Markup Language (XML)
 
Xml Presentation-1
Xml Presentation-1Xml Presentation-1
Xml Presentation-1
 
Xml schema
Xml schemaXml schema
Xml schema
 
Xml presentation
Xml presentationXml presentation
Xml presentation
 

Viewers also liked

Cosc412 presentation1
Cosc412 presentation1Cosc412 presentation1
Cosc412 presentation1garden8an
 
J Chen Resume Slides 2011
J Chen Resume Slides 2011J Chen Resume Slides 2011
J Chen Resume Slides 2011
itsjenny
 
Curating]Sketch_out_SSU
Curating]Sketch_out_SSUCurating]Sketch_out_SSU
Curating]Sketch_out_SSUgarden8an
 

Viewers also liked (7)

Navi manual
Navi manualNavi manual
Navi manual
 
Cosc412 presentation1
Cosc412 presentation1Cosc412 presentation1
Cosc412 presentation1
 
Itsasoruntz
ItsasoruntzItsasoruntz
Itsasoruntz
 
Phase 2
Phase 2Phase 2
Phase 2
 
J Chen Resume Slides 2011
J Chen Resume Slides 2011J Chen Resume Slides 2011
J Chen Resume Slides 2011
 
Resume - Copy
Resume - CopyResume - Copy
Resume - Copy
 
Curating]Sketch_out_SSU
Curating]Sketch_out_SSUCurating]Sketch_out_SSU
Curating]Sketch_out_SSU
 

Similar to Jungahan web presentation

Document type definition
Document type definitionDocument type definition
Document type definitionRaghu nath
 
Session 2
Session 2Session 2
2-DTD.ppt
2-DTD.ppt2-DTD.ppt
2-DTD.ppt
KGSCSEPSGCT
 
Encoded Archival Description (EAD)
Encoded Archival Description (EAD) Encoded Archival Description (EAD)
Encoded Archival Description (EAD)
Farris Wahbeh
 
it8074-soa-uniti-.pdf
it8074-soa-uniti-.pdfit8074-soa-uniti-.pdf
it8074-soa-uniti-.pdf
FreeFire293813
 
It8074 soa-unit i
It8074 soa-unit iIt8074 soa-unit i
It8074 soa-unit i
RevathiAPICSE
 
CIS-189 Final Review
CIS-189 Final ReviewCIS-189 Final Review
Unit iv xml
Unit iv xmlUnit iv xml
Unit iv xml
smitha273566
 
Document Type Definition
Document Type DefinitionDocument Type Definition
Document Type Definitionyht4ever
 
Xxe
XxeXxe
10. XML in DBMS
10. XML in DBMS10. XML in DBMS
10. XML in DBMSkoolkampus
 
DTD1.pptx
DTD1.pptxDTD1.pptx
DTD1.pptx
MouDhara1
 
Chen test paper20abcdeftfdfd
Chen test paper20abcdeftfdfdChen test paper20abcdeftfdfd
Chen test paper20abcdeftfdfdtechweb08
 
Test for an issue
Test for an issueTest for an issue
Test for an issuetechweb08
 
Chen's first test slides
Chen's first test slidesChen's first test slides
Chen's first test slidesHima Challa
 

Similar to Jungahan web presentation (20)

Document type definition
Document type definitionDocument type definition
Document type definition
 
Session 2
Session 2Session 2
Session 2
 
Xml2
Xml2Xml2
Xml2
 
2-DTD.ppt
2-DTD.ppt2-DTD.ppt
2-DTD.ppt
 
Encoded Archival Description (EAD)
Encoded Archival Description (EAD) Encoded Archival Description (EAD)
Encoded Archival Description (EAD)
 
it8074-soa-uniti-.pdf
it8074-soa-uniti-.pdfit8074-soa-uniti-.pdf
it8074-soa-uniti-.pdf
 
It8074 soa-unit i
It8074 soa-unit iIt8074 soa-unit i
It8074 soa-unit i
 
CIS-189 Final Review
CIS-189 Final ReviewCIS-189 Final Review
CIS-189 Final Review
 
Unit iv xml
Unit iv xmlUnit iv xml
Unit iv xml
 
Document Type Definition
Document Type DefinitionDocument Type Definition
Document Type Definition
 
XXE
XXEXXE
XXE
 
Xxe
XxeXxe
Xxe
 
10. XML in DBMS
10. XML in DBMS10. XML in DBMS
10. XML in DBMS
 
DTD1.pptx
DTD1.pptxDTD1.pptx
DTD1.pptx
 
XML Bible
XML BibleXML Bible
XML Bible
 
Xml and Co.
Xml and Co.Xml and Co.
Xml and Co.
 
Chen test paper20abcdeftfdfd
Chen test paper20abcdeftfdfdChen test paper20abcdeftfdfd
Chen test paper20abcdeftfdfd
 
Test for an issue
Test for an issueTest for an issue
Test for an issue
 
Chen's first test slides
Chen's first test slidesChen's first test slides
Chen's first test slides
 
Tp2
Tp2Tp2
Tp2
 

Jungahan web presentation

  • 1. DTD A Document Type Definition =A set of structural rules, declarations Use of DTD : impose uniform style sheet in external style sheet for XHTML Application program for testing document against the DTD
  • 2.
  • 3.
  • 4. Declaring Elements <!ELEMENT element_name (list of names of child elements)> Example) <!ELEMENT memo (from, to, data, re, body)>
  • 5. Tree structure memo from to data re body Leaf node, internal node : character pattern or a list of its child elements
  • 6. Child element specification modifiers <!ELEMENT person (parent+, age, spouse?, sibling*)
  • 7. Parsable character data a string of any printable character except less than(<), greater than(>), and ampersand(&). <!ELEMENT element_name(#PCDATA)> <!ELEMENT b (#PCDATA)> <!ELEMENT p (#PCDATA|a|b)*> EMPTY and ANY