Code for XML: A Primer, 3rd Edition

These code samples are for XML: A Primer, 3rd Edition and are Copyright 2001 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 and Netscape 6.0 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: Building on a Markup Foundation

Chapter 3: Core XML: Elements, Attributes, Text, and Namespaces

Chapter 4: Adding a Few More Parts

Chapter 6: Document Type Definitions

Chapter 9: Getting Started with W3C XML Schema: Structures

Chapter 10: Getting Started with RELAX

Chapter 12: Structure-Based Formatting: Cascading Style Sheets (CSS)

Chapter 14: Extensible Stylesheet Language (XSL)

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

Chapter 19: Recreating Web and Paper Documents with XML

Chapter 20: XML for Commerce

Chapter 21: XML for Document Management

Chapter 22: XML for Data-Driven Applications