Sams Teach Yourself XML in 21 Days
-
Table of Contents
- About the Author
- Acknowledgments
- We Want to Hear from You!
- Introduction
- Part I: At a Glance
- Day 1. Welcome to XML
- Day 2. Creating XML Documents
- Day 3. Creating Well-Formed XML Documents
- Day 4. Creating Valid XML Documents: DTDs
- Declaring Attributes in DTDs
- Day 6. Creating Valid XML Documents: XML Schemas
- Day 7. Creating Types in XML Schemas
- Part I. In Review
- Day 8. Formatting XML by Using Cascading Style Sheets
- Day 9. Formatting XML by Using XSLT
- Day 10. Working with XSL Formatting Objects
- Part II. In Review
- Part III: At a Glance
- Day 11. Extending HTML with XHTML
- Day 12. Putting XHTML to Work
- Day 13. Creating Graphics and Multimedia: SVG and SMIL
- Day 14. Handling XLinks, XPointers, and XForms
- Part III. In Review
- Part IV: At a Glance
- Day 15. Using JavaScript and XML
- Day 16. Using Java and .NET: DOM
- Day 17. Using Java and .NET: SAX
- Day 18. Working with SOAP and RDF
- Part IV. In Review
- Part V: At a Glance
- Day 19. Handling XML Data Binding
- Day 20. Working with XML and Databases
- Day 21. Handling XML in .NET
- Part V. In Review
- Appendix A. Quiz Answers
Part IV: At a Glance
Programming and XML
Part IV looks at how to use programming to get the most out of XML. Programming has a great deal to offer the XML author, and you'll start this part by taking a look at working with JavaScript in Web pages.
By using JavaScript, you can load XML documents and parse them, searching through their data for an item. You're going to see how to do that, as well as how to validate XML documents that use either DTDs or XML schemas by using JavaScript.
You'll also take a look at how to use XML with Java in this part. Versions 1.4 and later of Java have a great deal of support for XML built in. You're going to take advantage of that support in both the XML Document Object Model (DOM) and the Simple API for XML (SAX).
In this part you're also going to take a look at how to work with the Simple Object Access Protocol (SOAP). SOAP is an XML-based protocol that lets applications communicate on the Internet, and you'll take a look at working with SOAP both with Java and .NET programming. (If you're a .NET programmer, you should take a look at Day 21, which is dedicated to .NET XML programming.)
Day 15. Using JavaScript and XML | Next Section