X hits on this document

439 views

0 shares

1 downloads

0 comments

10 / 142

Table of Contents

  • 1.

    Introduction ............................................................................................................ 3 What is XML and why should I care? ............................................................. 3

  • 2.

    A gentle introduction to XML markup ......................................................................... 6 XML syntax ............................................................................................... 6 XML documents always have one and only one root element .............................. 6 Element names are case-sensitive ................................................................... 7 Elements are always closed ........................................................................... 7 Elements must be correctly nested .................................................................. 7 Elements' attributes must always be quoted ...................................................... 8 There are only five entities defined by default ................................................... 8 Namespaces ............................................................................................... 8 XML semantics .......................................................................................... 9 Exercise - Checking XML syntax ................................................................. 10

  • 3.

    Creating your own markup ...................................................................................... 11 Purpose and components ............................................................................ 11 Exercise - Creating your own XML mark up .................................................. 13

  • 4.

    Document type definitions ....................................................................................... 15 Defining XML vocabularies with DTDs ........................................................ 15 Names and numbers of elements .................................................................. 16 PCDATA ................................................................................................ 17 Sequences ................................................................................................ 17 Putting it all together ................................................................................. 17 Exercise - Writing a simple DTD ................................................................. 19 Exercise - Validating against a system DTD ................................................... 20 Exercise - Fixing an XML document by hand ................................................. 20

ii

Document info
Document views439
Page views445
Page last viewedThu Dec 08 10:46:41 UTC 2016
Pages142
Paragraphs3126
Words34660

Comments