!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Lecture 3: XML and XHTML

Lecture 3

XML and XHTML

Ketan Mayer-Patel

University of North Carolina

Announcements

Character References (Entities)

Back to document type.

Validation

HTML shortcomings

Motivating XML

XML Overview

XML Standards

XML Document Structure

XML Declaration

<?xml version="1.0" encoding="UTF-8" ?>

Examples

DTD Declaration

<!DOCTYPE Root_Element SYSTEM Public_ID DTD_URL?>

XML Document Body

XML Elements

XML Attributes

Reserved Attributes

An Example XML document

Empty Elements

XML Comment Mechanism

XML Entities

CDATA

Well-Formedness

Sharing Vocabularies

Sharing XML Problems

Sharing XML Solutions

Namespace

XML Namespaces Overview

Qualified Names

Declaring a Namespace

Namespace Prefix Scope

Default namespace

Validating XML

XHTML (at last!)

XHTML DTDs

Important XHTML Rules

Examples

Learning and Using XHTML

State of XHTML Today