XML - Learning by Example
This book is aimed at becoming the standard text book for introductory courses on eXtensible Markup Language programming. It contains 26 examples of XML coding, with each followed by a detailed explanation. Theory, tips and new concepts are introduced "along the way", both in the body of the text as well as in the examples.
Experience shows quite clearly, that if you sit down at your PC and read/work through the book, you will be able to do most XML programming within a few days.
For this work you will ideally have a 5+ version browser, preferably (but not essential) a CSS2-enabled version 5.5+ browser, however all examples with the exception of A2 and B, can be displayed in Internet Explorer 4, especially if you wish to add the latest parser (called "msxml") to your MSIE4, which is available free from microsoft.com (http://msdn.microsoft.com/downloads/webtechnology/xml/msxml.asp). Further explanations follow both in the appendices, as well as in web-links provided at the end.
An ASCII text editor is sufficient to write the code examples described in this book.
Learn eXtensible Markup Language.
Symbols and conventions
Why learn XML - the benefits.
XML and its Tags
Comments and Spaces
Information and Metainformation
Similarities between Databases and XML
How does XML read data ?
Displaying data in an XML file using external sources.
Different media and the @media directive
One display for various media using CSS2
XML Data display; DHTML and CSS
Cascading Style Sheets
Linked External Style Sheets
The Cascade in Cascading Style Sheets
Pulling data into a HTML file using an external XML source.
Exploring data levels in an XML source file
Nodes and DOM.
Writing HTML in XML, using CDATA
XML Namespaces: XMLNS
XSL: XML Stylesheet Language
Displaying repetitive XML data using XSL
Sorting XML data using XSL
Displaying XML data in HTML, using an XSL file to query and sort the data.
XSL conditional statements.
Displaying XML data, the data-driven model.
Home Exercise 1
Document Type Declaration; DTD
The DTD: Occurrence Indicators
The DTD: Connectors
The DTD: Attribute Declarations
The DTD: Attribute Types:
Validation with DTD and Microsoft XML Parser
Reverse DTD Generation
DTD Generation with PaulT
An XML Schema
XLST: XSL Transformation
Transforming XML into HTML.
Server-side XSLT using Personal Web Server
Java and XML: The Java 2 Runtime Environment
Passive and active files
JRE and JDK
Converting XML to database using Java
XML and VBScript
XML and ASP
XLink and XPointer
A simple Xlink
Frames in XHTML
XHTML and file extensions
XHTML and XML in the browser
Home Exercise 2:
Troubleshooting & Debugging
From Access to UNIX using XML (and back again)
Appendix A: Document Object Model; the DOM
Appendix B: An XML Glossary
Appendix C: Unicode Character reference:
Appendix D: useful links:
Return to overview