Presentation 132
Presentation 132
PROCEDURAL MARKUP
GENERIC CODING
SGML
HTML
XML
INTRODUCTION TO XML
What is XML?
Is XML SGML?
Is XML HTML?
Why Must We Switch to XML?
Why Not Go Back to SGML?
Document Structure
<note>
<to>Tove</to>
<from>Jani</from>
<body>Don't forget me this weekend!</body>
</note>
<note>
<date>2002-08-01</date>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
XML Elements have relationship
<book>
<title>My First XML</title>
<prod id="33-657" media="paper"></prod>
<chapter>Introduction to XML
<para>What is HTML</para>
<para>What is XML</para>
</chapter>
<chapter>XML Syntax
<para>Elements must have a closing tag</para>
<para>Elements must be properly nested</para>
</chapter>
</book>
XML Attributes