SlideShare a Scribd company logo
1 of 8
SGML and XMLSGML and XML
Richard Sapon-White
Introduction to Metadata
May 13, 2013
SGMLSGML
Standardized General Markup Language, a
metalanguage
DTD (Document Type Definition) –
identifies the scheme used to define tags
and the rules for using them
DTDs: EAD, HTML, DTD for MARC21
2
SGML (cont.)SGML (cont.)
Uses start and end tags; attribute names
and values
Elements may include text, text +
attribute, attribute
Elements (wrappers) may include other
elements (subelements)
3
SGML Advantages and DisadvantagesSGML Advantages and Disadvantages
Advantages
◦ Element names can be mnemonic, e.g. EAD
element <titleproper> (compare with 245 $a)
◦ Hierarchical: can inherit data encoded at
higher levels
Disadvantage
◦ Difficult for programs to process; software
applications are complex
4
XMLXML
Type of SGML with fewer features and
options, for example:
◦ End tags must be used
◦ Attribute values always in quotation marks
Easier to process
◦ Tags are case-sensitive
◦ Attributes may contain UNICODE characters
5
Examples: LC DTD for MARC21Examples: LC DTD for MARC21
<mrcb245 i1=0 i2=4><mrcb245-a>The
health of dairy cattle /<mrcb245-c>edited
by Anthony H. Andrews. [SGML]
<mrcb245 i1=“0” i2=“4”><mrcb245-
a>The health of dairy cattle/</mrcb245-
a><mrcb245-c>edited by Anthony H.
Andrews.</mrcb245-c></mrcb245>
[XML]
6
XML DevelopmentXML Development
World Wide Web Consortium (W3C)
actively developing XML
XML linking language, query language,
stylesheet language, etc.
XML Schema are an alternative to DTDs
LC has developed MARCXML, an XML
Schema for MARC21 records
7
XML: TodayXML: Today
The language of the Web
Web browsers and other applications
support XML-encoded documents
8

More Related Content

What's hot (20)

XML Introduction
XML IntroductionXML Introduction
XML Introduction
 
Jungahan web presentation
Jungahan web presentationJungahan web presentation
Jungahan web presentation
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
4 xml namespaces and xml schema
4   xml namespaces and xml schema4   xml namespaces and xml schema
4 xml namespaces and xml schema
 
XML and DTD
XML and DTDXML and DTD
XML and DTD
 
Document Type Definitions
Document Type DefinitionsDocument Type Definitions
Document Type Definitions
 
2 dtd - validating xml documents
2   dtd - validating xml documents2   dtd - validating xml documents
2 dtd - validating xml documents
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
XML's validation - DTD
XML's validation - DTDXML's validation - DTD
XML's validation - DTD
 
XML
XMLXML
XML
 
Extensible Markup Language (XML)
Extensible Markup Language (XML)Extensible Markup Language (XML)
Extensible Markup Language (XML)
 
Dtd
DtdDtd
Dtd
 
Sgml and xml
Sgml and xmlSgml and xml
Sgml and xml
 
Xml Presentation-3
Xml Presentation-3Xml Presentation-3
Xml Presentation-3
 
Basic XML
Basic XMLBasic XML
Basic XML
 
Xml presentation
Xml presentationXml presentation
Xml presentation
 
Document type definition
Document type definitionDocument type definition
Document type definition
 
Xml by Luqman
Xml by LuqmanXml by Luqman
Xml by Luqman
 
Dtd
DtdDtd
Dtd
 
Intro to xml
Intro to xmlIntro to xml
Intro to xml
 

Viewers also liked

Why SGML (Retro Alert 1995)
Why SGML (Retro Alert 1995)Why SGML (Retro Alert 1995)
Why SGML (Retro Alert 1995)Joe Gollner
 
Math content conversion
Math content conversionMath content conversion
Math content conversionJB Online
 
Basic Software Tools for multi-media
Basic Software Tools for multi-mediaBasic Software Tools for multi-media
Basic Software Tools for multi-mediaguestb7a19c
 
multimedia authorizing tools
multimedia authorizing toolsmultimedia authorizing tools
multimedia authorizing toolsSantosh Jhansi
 
Chapter 2 multimedia authoring and tools
Chapter 2 multimedia authoring and toolsChapter 2 multimedia authoring and tools
Chapter 2 multimedia authoring and toolsABDUmomo
 
Multimedia software tools
Multimedia software toolsMultimedia software tools
Multimedia software toolsJay Patel
 
Multimedia authoring tools
Multimedia authoring toolsMultimedia authoring tools
Multimedia authoring toolsOnline
 

Viewers also liked (11)

Why SGML (Retro Alert 1995)
Why SGML (Retro Alert 1995)Why SGML (Retro Alert 1995)
Why SGML (Retro Alert 1995)
 
Remote login
Remote loginRemote login
Remote login
 
Math content conversion
Math content conversionMath content conversion
Math content conversion
 
Basic Software Tools for multi-media
Basic Software Tools for multi-mediaBasic Software Tools for multi-media
Basic Software Tools for multi-media
 
multimedia authorizing tools
multimedia authorizing toolsmultimedia authorizing tools
multimedia authorizing tools
 
Cd Rom
Cd RomCd Rom
Cd Rom
 
Markup Languages
Markup Languages Markup Languages
Markup Languages
 
Chapter 2 multimedia authoring and tools
Chapter 2 multimedia authoring and toolsChapter 2 multimedia authoring and tools
Chapter 2 multimedia authoring and tools
 
Multimedia software tools
Multimedia software toolsMultimedia software tools
Multimedia software tools
 
Big data concepts
Big data conceptsBig data concepts
Big data concepts
 
Multimedia authoring tools
Multimedia authoring toolsMultimedia authoring tools
Multimedia authoring tools
 

Similar to Sgml and xml

Similar to Sgml and xml (20)

Advances in gml for geospatial applications slide
Advances in gml for geospatial applications slideAdvances in gml for geospatial applications slide
Advances in gml for geospatial applications slide
 
CIS-189 Final Review
CIS-189 Final ReviewCIS-189 Final Review
CIS-189 Final Review
 
O9xml
O9xmlO9xml
O9xml
 
AngularJS custom directive
AngularJS custom directiveAngularJS custom directive
AngularJS custom directive
 
XML-athon with Don and Dean
XML-athon with Don and DeanXML-athon with Don and Dean
XML-athon with Don and Dean
 
Introduction to XML.ppt
Introduction to XML.pptIntroduction to XML.ppt
Introduction to XML.ppt
 
Introduction to XML.ppt
Introduction to XML.pptIntroduction to XML.ppt
Introduction to XML.ppt
 
Session 1
Session 1Session 1
Session 1
 
XML
XMLXML
XML
 
State of the Geodata
State of the GeodataState of the Geodata
State of the Geodata
 
Intro xml
Intro xmlIntro xml
Intro xml
 
06 chapter03 04_control_logix_tags_memory_structure_fa16
06 chapter03 04_control_logix_tags_memory_structure_fa1606 chapter03 04_control_logix_tags_memory_structure_fa16
06 chapter03 04_control_logix_tags_memory_structure_fa16
 
Module 5 XML Notes.pdf
Module 5 XML Notes.pdfModule 5 XML Notes.pdf
Module 5 XML Notes.pdf
 
Xml
XmlXml
Xml
 
93 peter butterfield
93 peter butterfield93 peter butterfield
93 peter butterfield
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
Xml For Dummies Chapter 8 Understanding And Using Dt Ds it-slideshares.blog...
Xml For Dummies   Chapter 8 Understanding And Using Dt Ds it-slideshares.blog...Xml For Dummies   Chapter 8 Understanding And Using Dt Ds it-slideshares.blog...
Xml For Dummies Chapter 8 Understanding And Using Dt Ds it-slideshares.blog...
 
Xml in bio medical field
Xml in bio medical fieldXml in bio medical field
Xml in bio medical field
 
Xml dtd- Document Type Definition- Web Technology
Xml dtd- Document Type Definition- Web TechnologyXml dtd- Document Type Definition- Web Technology
Xml dtd- Document Type Definition- Web Technology
 
XML Schema
XML SchemaXML Schema
XML Schema
 

More from Richard.Sapon-White

Rda and new research potentials, agata kawalec
Rda and new research potentials, agata kawalecRda and new research potentials, agata kawalec
Rda and new research potentials, agata kawalecRichard.Sapon-White
 
RDF and the Semantic Web -- Joanna Pszenicyn
RDF and the Semantic Web -- Joanna PszenicynRDF and the Semantic Web -- Joanna Pszenicyn
RDF and the Semantic Web -- Joanna PszenicynRichard.Sapon-White
 
Continuing Education for Metadata Creation and Management
Continuing Education for Metadata Creation and ManagementContinuing Education for Metadata Creation and Management
Continuing Education for Metadata Creation and ManagementRichard.Sapon-White
 
RDA as an international standard
RDA as an international standardRDA as an international standard
RDA as an international standardRichard.Sapon-White
 
Metadata lecture 3, metadata schemes
Metadata lecture 3, metadata schemesMetadata lecture 3, metadata schemes
Metadata lecture 3, metadata schemesRichard.Sapon-White
 
Introduction to metadata, part 2
Introduction to metadata, part 2Introduction to metadata, part 2
Introduction to metadata, part 2Richard.Sapon-White
 
Course syllabus metadata systems for warsaw
Course syllabus metadata systems for warsawCourse syllabus metadata systems for warsaw
Course syllabus metadata systems for warsawRichard.Sapon-White
 
Preparing your presentation.pptx [repaired]
Preparing your presentation.pptx [repaired]Preparing your presentation.pptx [repaired]
Preparing your presentation.pptx [repaired]Richard.Sapon-White
 
E books in public libraries. vendors in poland and usa
E books in public libraries. vendors in poland and usaE books in public libraries. vendors in poland and usa
E books in public libraries. vendors in poland and usaRichard.Sapon-White
 
Accessibility issues with ebooks
Accessibility issues with ebooksAccessibility issues with ebooks
Accessibility issues with ebooksRichard.Sapon-White
 

More from Richard.Sapon-White (20)

Rda and new research potentials, agata kawalec
Rda and new research potentials, agata kawalecRda and new research potentials, agata kawalec
Rda and new research potentials, agata kawalec
 
RDF and the Semantic Web -- Joanna Pszenicyn
RDF and the Semantic Web -- Joanna PszenicynRDF and the Semantic Web -- Joanna Pszenicyn
RDF and the Semantic Web -- Joanna Pszenicyn
 
Continuing Education for Metadata Creation and Management
Continuing Education for Metadata Creation and ManagementContinuing Education for Metadata Creation and Management
Continuing Education for Metadata Creation and Management
 
VRA Core 4.0
VRA Core 4.0VRA Core 4.0
VRA Core 4.0
 
RDA as an international standard
RDA as an international standardRDA as an international standard
RDA as an international standard
 
Metadata april 8 2013
Metadata april 8 2013Metadata april 8 2013
Metadata april 8 2013
 
Metadata crosswalks
Metadata crosswalksMetadata crosswalks
Metadata crosswalks
 
Metadata and the web
Metadata and the webMetadata and the web
Metadata and the web
 
Metadata lecture 5 part 2
Metadata lecture 5 part 2Metadata lecture 5 part 2
Metadata lecture 5 part 2
 
Metadata lecture 3, metadata schemes
Metadata lecture 3, metadata schemesMetadata lecture 3, metadata schemes
Metadata lecture 3, metadata schemes
 
Rda class, lecture 2
Rda class, lecture 2Rda class, lecture 2
Rda class, lecture 2
 
Rda class, lecture 2
Rda class, lecture 2Rda class, lecture 2
Rda class, lecture 2
 
Introduction to metadata, part 2
Introduction to metadata, part 2Introduction to metadata, part 2
Introduction to metadata, part 2
 
Course syllabus metadata systems for warsaw
Course syllabus metadata systems for warsawCourse syllabus metadata systems for warsaw
Course syllabus metadata systems for warsaw
 
Rda seminar syllabus
Rda seminar syllabusRda seminar syllabus
Rda seminar syllabus
 
Preparing your presentation.pptx [repaired]
Preparing your presentation.pptx [repaired]Preparing your presentation.pptx [repaired]
Preparing your presentation.pptx [repaired]
 
Rda class, lecture 1
Rda class, lecture 1Rda class, lecture 1
Rda class, lecture 1
 
Metadata lecture 1, intro
Metadata lecture 1, introMetadata lecture 1, intro
Metadata lecture 1, intro
 
E books in public libraries. vendors in poland and usa
E books in public libraries. vendors in poland and usaE books in public libraries. vendors in poland and usa
E books in public libraries. vendors in poland and usa
 
Accessibility issues with ebooks
Accessibility issues with ebooksAccessibility issues with ebooks
Accessibility issues with ebooks
 

Recently uploaded

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 

Recently uploaded (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 

Sgml and xml

  • 1. SGML and XMLSGML and XML Richard Sapon-White Introduction to Metadata May 13, 2013
  • 2. SGMLSGML Standardized General Markup Language, a metalanguage DTD (Document Type Definition) – identifies the scheme used to define tags and the rules for using them DTDs: EAD, HTML, DTD for MARC21 2
  • 3. SGML (cont.)SGML (cont.) Uses start and end tags; attribute names and values Elements may include text, text + attribute, attribute Elements (wrappers) may include other elements (subelements) 3
  • 4. SGML Advantages and DisadvantagesSGML Advantages and Disadvantages Advantages ◦ Element names can be mnemonic, e.g. EAD element <titleproper> (compare with 245 $a) ◦ Hierarchical: can inherit data encoded at higher levels Disadvantage ◦ Difficult for programs to process; software applications are complex 4
  • 5. XMLXML Type of SGML with fewer features and options, for example: ◦ End tags must be used ◦ Attribute values always in quotation marks Easier to process ◦ Tags are case-sensitive ◦ Attributes may contain UNICODE characters 5
  • 6. Examples: LC DTD for MARC21Examples: LC DTD for MARC21 <mrcb245 i1=0 i2=4><mrcb245-a>The health of dairy cattle /<mrcb245-c>edited by Anthony H. Andrews. [SGML] <mrcb245 i1=“0” i2=“4”><mrcb245- a>The health of dairy cattle/</mrcb245- a><mrcb245-c>edited by Anthony H. Andrews.</mrcb245-c></mrcb245> [XML] 6
  • 7. XML DevelopmentXML Development World Wide Web Consortium (W3C) actively developing XML XML linking language, query language, stylesheet language, etc. XML Schema are an alternative to DTDs LC has developed MARCXML, an XML Schema for MARC21 records 7
  • 8. XML: TodayXML: Today The language of the Web Web browsers and other applications support XML-encoded documents 8

Editor's Notes

  1. SGML describes the syntax for encoding documents, but not specific tags.