Code for XML: A Primer, 2nd Edition

These code samples are for XML: A Primer, 2nd Edition and are Copyright 1999 by Simon St.Laurent. For the most part, you'll need the book to get much out of them. Internet Explorer 5.0 or higher is currently your best bet for browsing the samples, though recent builds of Mozilla may be useful for some of it as well. You can also download a zipped version of the samples for off-line browsing.

Chapter 2: Separating Content From Presentation

Chapter 3: Simple XML

Chapter 4: Plan in the Present, Save in the Future

Chapter 5: Mortar and Bricks

Chapter 6: Recreating Web and Paper Documents

Chapter 7: XML for Commerce

Chapter 8: XML for Document Management

Chapter 9: XML for Data-Driven Applications