NOTE:
These slides have not been updated since 2003. They have been superseded by the book
Anders Møller and Michael Schwartzbach, February 2006 |
THE XML REVOLUTION - TECHNOLOGIES FOR THE FUTURE WEB |
Markup tags denote elements:
...<foo attr="val" ...>...</foo>... | | | | | | | a matching element end tag | | the contents of the element | an attribute with name attr and value val, values enclosed by ' or " an element start tag with name foo |
There is a short-hand notation for empty elements: ...<foo attr="val".../>...
An XML document must be well-formed:
Note: XML is case sensitive!
Special characters can be escaped using Unicode character references:
White-space (blanks, newlines, etc.) is used both for indentation and actual contents. (xml:space attribute provides some control.)
Other meta-information:
COPYRIGHT © 2000-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH |