Throughout the book, we included several examples of functioning XML markup. 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 functional examples from the book that are longer than five lines and and put them into easily acessible text files for you to work from.
We've created hyperlinked listings of the examples included in each chapter of the book to provide you with easy access to the example 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 see how a Web browser renders a particular example, simply click on its link. To return to the chapter table of contents from a code example, press your Web browser's "Back" button.
Note: If you want to see and possibly modify the naked XML code behind any of our examples open the example file with a text editor or XML instead of a Web browser. In fact, these code samples are perfect candidates for trying out the many open source and demo XML editors available on the CD.
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.
We use a bean burrito XML document and a recipe DTD and Schema throughout the book as the basis for many of our discussions. Rather than listing the same examples over and over again for each chapter, we've put them right here so you have easy access to them. Chapters whose only code is one of these three documents (like Chapter 3) don't have individual chapter code pages linked below. Finally, if we use a chunk of one of these documents in a chapter we trust you can find the snippet in the full-lenght documents linked heer, so we won't repeat ourselves by mixing snippets of these documents in with other, complete, code samples.
In some chapters we alter these documents to prove a point or show you a different way to do something. Look for those variations on these base documents list with other sample code from each chapter.
1. Understanding What XML Is -- and Why You Should Care
2. Comparing and Combining HTML and XML
3. Shake Hands with XML!
4. Planning an XML Document That Does Something Great
5. Defining XML Documents
6. Understanding and Using DTDs
8. Understanding and Using XML Schema
9. Building Custom XML Schemas
12. Adding Character to XML
13. Inside an XML Solution
15. Processing XML
20. Cool XML Tools and Technologies
21. XML and Web Services
22. XML on the Spot!
23. Ten Reasons to Enjoy XML -- Really!
24. Ten Stylish XML Extensions
25. Ten Top XML Applications
26. Ten Ultimate XML Resources
HOME | BOOKS | TRAINING | CERTIFICATION | JAVA SHOWCASE |  About LanWrights |  Overview
NOTICE:
You can signup for the new lanw forums, and begin contributing to our new look website from spring 2007 onwards.
Last edited 1st March 2007.