Chapter Examples

Throughout the book, we included several examples of XML. Although you could copy the code character for character from the book, we knew there had to be an easier -- and hence better -- way to help you learn from our examples. To that end, we've extracted all of the examples from the book and saved them as plain text, HTML files for you to work from. In general these examples only consist of code fragments that are ten lines or longer. In addition to skipping examples that are less than ten lines long, we've also skipped those examples that are intentionally incorrect or "broken". After all, we only want you to work with good XML.

We've created hyperlinked listings of the examples included in each chapter of the book to provide you with easy access to the example text files. The listings are broken down by chapter. To access the examples from a particular chapter, click on its name below and the listing of the examples from that chapter will be loaded in to your Web browser. To modify a code example, you can cut and paste the text from your Web browser into your text editor of choice and change it to your heart's content. To get these examples to appear as code in a Web browser, we had to do some funky conversions, so if you try to open the individual example files with a text editor you'll find some pretty hairy character entities, so we recommend the cut and paste method instead. To return to the chapter table of contents from a code text file press your Web browser's "Back" button.

Many of our examples are complete documents that have companion DTDs. We've made these DTDs available in the same folders as the chapter examples they go with. DTDs are clearly identified as such in each chapter's example listings and are saved on the CD in the /examples/DTDs/ folder. To view a DTD save it to you hard drive and open it with your favorite text editor. The Extras page lists all of the DTDs together, including the chapters that each DTD is associated with, so you can download them all from one page if you'd like.

If a chapter is listed but not hyperlinked that means we didn't include any examples in it. We didn't want you to think we accidentally skipped a chapters, so we listed all of them.

Part I: Why XML is "eXtreMely cooL"

1: What Is XML and Why You Should Care

2: The Beginnings of XML

3: Shake Hands with XML!

Part II: Structuring XML Documents

4: Understanding XML Document Structure

5: Understanding and Using DTDs

6: Building DTDs

7: Attributes Add Flexibility to XML

Part III: Building XML Documents

8: Putting Your DTD to Work

9: Combining Multiple DTDs

10: Adding Character to XML

Part IV: The Sense of Style for XML

11: How Style Really Works

12:The Building Blocks of CSS

13: Applying Style to XML with XSL

14: Special Topics on XML Style

Part V: XML's Lovely Linking Languages

15: The XML Linking Language (XLink)

16: The XML Path Language

17: The XML Pointer Language

Part VI: Sampling XML Applications

18: XML Can Channel from Many Sources

19: The Mathematical Markup Language

20: DocBook for XML

Part VII: Cool XML Technologies

21: Cool Tools Rule

22: Ultimate Online Resources for XML and SGML

Part VIII: The Parts of Ten

23:Ten Ways to Enjoy XML -- Really!

24: Ten Stylish XML Extensions

25: The Top Ten XML Applications

Contact Info Chapter Examples Extras Chapter URLs Site Overview Chapter Contents Home Page

Home | Chapter Contents | Chapter URLs | Chapter Examples | Site Overview | Extras | Contact Info


URL: http://www.lanw.com/books/xmlfdum2/examples/default.htm
E-mail: XML For Dummies, 2nd Edition
Webmaster
Copyright Information
Revised -- February 7, 2000