2. What is XML?
• XML = eXtensible Markup Language
• Allows information and services to be encoded with
meaningful structure and semantics that computers
and humans can understand.
• Established by the World Wide Web Consortium
3. XML Syntax
XML Declaration
Elements in matching tags
Nested tags
<?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
<title>Grandmother Puss, or, The grateful mouse</title>
<book>
<title>Grandmother Puss, or, The grateful mouse</title>
</book>
4. XML Syntax ( continued )
Empty Tags
Attributes
Remarks
<book> </book>
<book />
<identifier type="oclc">32380062</identifier>
<? Data for a new digital resource ?>
5. XML Example
• Example for a book with a title and OCLC number
• This defines a book, but does not adhere to any
standard or schema
<?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
<? Data for a new digital resource ?>
<book>
<title>Grandmother Puss, or, The grateful mouse</title>
<identifier type="oclc">32380062</identifier>
</book>
6. XML Schemas
• Creates a vocabulary to use
• Constrains the structure of XML data
• Defines a namespace
<?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
<? Data for a new digital resource using 'dc' schema ?>
<book xmlns:dc="http://www.uflib.ufl.edu/digital/metadata/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.uflib.ufl.edu/digital/metadata/dc.xsd" >
<dc:title>Grandmother Puss, or, The grateful mouse</dc:title>
<dc:identifier type="oclc">32380062</dc:identifier>
</book>
8. Metadata Example: Dublin Core
<dc:title>Grandmother Puss, or, The grateful mouse</dc:title>
<dc:title>Grateful mouse</dc:title>
<dc:creator>McLoughlin Bros., inc ( Publisher )</dc:creator>
<dc:subject>Cats -- Juvenile literature ( lcsh )</dc:subject>
<dc:subject>Mice -- Juvenile literature ( lcsh )</dc:subject>
<dc:description>Cover title.</dc:description>
<dc:description>Pagination includes wrappers; text completed on
lower wrapper.</dc:description>
<dc:description>Chromolithographs: cover ill.,
text illustrations.</dc:description>
<dc:description>(Funding) Preservation and Access for American and
British Children's Lit (NEH PA-50860-00).</dc:description>
<dc:publisher>McLoughlin Brothers</dc:publisher>
<dc:type>Book</dc:type>
<dc:format>7, [1] p. : col. ill. ; 17 cm.</dc:format>
<dc:identifier>http://www.uflib.ufl.edu/ufdc/?b=UF00023488</dc:identifier>
<dc:identifier>002798984 (ALEPH)</dc:identifier>
<dc:source>University of Florida</dc:source>
<dc:language>English</dc:language>
<dc:rights>All rights reserved, Board of Trustees of U Florida.</dc:rights>
9. Title Encoding Comparison
Jessamines Children Book
MARC
245 14 |a The Jessamines
|h [electronic resource]
|b a story of a country house /
|c by Grace Stebbing.
10. Title Encoding Comparison
Jessamines Children Book
MarcXML
<datafield tag="245" ind1="1" ind2="4">
<subfield code="a">The Jessamines</subfield>
<subfield code="h">[electronic resource]</subfield>
<subfield code="b">a story of a country house /</subfield>
<subfield code="c">by Grace Stebbing.</subfield>
</datafield>
11. Title Encoding Comparison
Jessamines Children Book
MODS
<mods:titleInfo>
<mods:nonSort>The</mods:nonSort>
<mods:title>Jessamines</mods:title>
<mods:subTitle>a story of a country house</mods:subTitle>
</mods:titleInfo>
<mods:note type="statement of responsibility">
by Grace Stebbing.
</mods:note>
12. Title Encoding Comparison
Jessamines Children Book
Dublin Core
<dc:title>
The Jessamines: a story of a country house
</dc:title>
<dc:description>
by Grace Stebbing.
</dc:description>
13. Title Encoding Comparison
Jessamines Children Book
Dublin Core
<dc:title>
The Jessamines: a story of a country house
</dc:title>
<dc:description>
by Grace Stebbing.
</dc:description>
245 1 |a The Jessamines : a story of a country house
|h [electronic resource]
14. Title Encoding Comparison
• MARC Comparison
• From MODS
• From Dublin Core
245 14 |a The Jessamines
|h [electronic resource]
|b a story of a country house /
|c by Grace Stebbing.
245 1 |a The Jessamines : a story of a country house
|h [electronic resource]
15. Author Encoding Comparison
It's his way, and other stories
MARC
700 |a Elliott, E. S.
|q (Emily Steele),
|d 1836-1897.
|4 aut |4 ill
16. Author Encoding Comparison
It's his way, and other stories
MODS
<mods:name type="personal">
<mods:namePart>Elliott, E. S.</mods:namePart>
<mods:namePart type="date">1836-1897</mods:namePart>
<mods:displayForm>Emily Steele</mods:displayForm>
<mods:role>
<mods:roleTerm type="text">Author</mods:roleTerm>
<mods:roleTerm type="code"
authority="marcrelator">aut</mods:roleTerm>
<mods:roleTerm type="text">Illustrator</mods:roleTerm>
<mods:roleTerm type="code"
authority="marcrelator">ill</mods:roleTerm>
</mods:role>
</mods:name>
17. Author Encoding Comparison
It's his way, and other stories
Dublin Core
<dc:creator>
Elliott, E. S. ( Emily Steele ), 1836-1897
</dc:creator>
18. Author Encoding Comparison
It's his way, and other stories
Dublin Core
<dc:creator>
Elliott, E. S. ( Emily Steele ), 1836-1897
</dc:creator>
700 |a Elliott, E. S. (Emily Steele), 1836-1897
19. Author Encoding Comparison
• MARC Comparison
• From MODS
• From Dublin Core
700 |a Elliott, E. S. (Emily Steele), 1836-1897
700 |a Elliott, E. S.
|q (Emily Steele),
|d 1836-1897.
|4 aut |4 ill