Yliopiston etusivulle In English
Helsingin yliopisto
clt236: XML - lukuvuosi 2009-2010

Yhteystiedot

Yleisen kielitieteen laitos

14.8.2009 saakka:
PL 9 (Siltavuorenpenger 20 A)
00014 HELSINGIN YLIOPISTO

17.8.2009 alkaen:
PL 24 (Unioninkatu 40)
00014 HELSINGIN YLIOPISTO

Puhelin +358 (09) 1911 (vaihde)
Faksi +358 (09) 191 29307

3. Validating XML.

  • Lecture notes
  • Further reading
  • Practical work: validating XML with a DTD
    • Copy memory.dtd and memory1.xml to your Windows folder.
      Open memory1.xml in jEdit and view the document structure in SideKick.
      Validate the file against the DTD by clicking the Parse button.
    • Edit memory1.xml to make deliberate mistake 1 (by changing the first <memory> to <memoir>) and validate it again.
    • Edit it further to make deliberate mistake 2 (by also changing the first </memory> to </memoir>). Is it now valid or invalid?
  • Practical work: validating XML with an XML Schema
    • Copy memory.xsd and memory2.xml to your Windows folder.
      Open memory2.xml in jEdit and view the document structure in SideKick.
      Validate the file against the Schema by clicking the Parse button.
    • Edit memory2.xml to make deliberate mistake 1 (by changing the first <memory> to <memoir>) and validate it again.
    • Edit it further to make deliberate mistake 2 (by also changing the first </memory> to </memoir>). Is it now valid or invalid?
  • Practical work on Linux

Assignment 2.

© 2001-2009 Graham Wilcock