XML Basics

XML Basics

Objective

  • Introduction to the XML language: a meta-language exploited to describe document
  • The XML DTD to describe the language grammar
  • The XML Schema instead of DTD
  • Elaborating XML documents with Java
  • The XHTML language
  • Exercises

Theory

Exercises

  • Exercise 1: By exploiting the Exercise 4
  • Exercise 2: Build a XML file and its grammar to represent the phone book of Lab 1
    • Exercise 2.1: Experiment XML with CSS through the tutorial with your browser acting the transformation Build a CSS file for the XML phone book
    • Exercise 2.2: Experiment XML with XSLT through the tutorial with your browser acting the transformation Build a XSLT file to transform the XML phone book in a HTML representation
  • Exercise 3: Experiment SAX and DOM Java parser to read the XML phone book
    • See also XML examples here and XSLT examples here