Sams Teach Yourself XML in 24 Hours, Complete Starter Kit

by
Edition: 3rd
Format: Paperback
Pub. Date: 2005-11-14
Publisher(s): Sams Publishing
  • Free Shipping Icon

    This Item Qualifies for Free Shipping!*

    *Excludes marketplace orders.

List Price: $41.99

Rent Book

Select for Price
There was a problem. Please try again later.

New Book

We're Sorry
Sold Out

Used Book

We're Sorry
Sold Out

eBook

We're Sorry
Not Available

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

The third edition ofSams Teach Yourself XML in 24 Hours, Complete Starter Kitis everything you need to know about the XML language and how to use it in practical, innovative applications. Understanding the syntax of XML is only a small part of the learning process; understanding how to apply it is the larger part of the learning process, and is the primary focus of this book. It covers a broad range of topics, and wil show you how to use XML to mine data on the web, how to use it to interact with existing data services such as iTunes and Google, and how to use it in applications such as e-books, online speech synthesis, and multimedia.Sams Teach Yourself XML in 24 Hours, Complete Starter Kit, Third Editionwill teach you what you need to know to get up and running with XML and more importantly, how to do cool things with it!

Author Biography

Michael Morrison is a writer and developer with extensive experience with XML. He has authored numerous computer and Web technology books, including several XML books such as Sams Teach Yourself HTML and XHTML in 24 Hours, 6th Edition, Faster Smarter HTML and XML, Sams Teach Yourself XML in 24 Hours, 2nd Edition, and XML Unleashed. Michael has personally developed several content-driven Web sites using XML technologies, including his personal Web site at http://www.michaelmorrison.com.

Table of Contents

Introduction 1(1)
How This Book Is Structured
2(1)
What You'll Need
3(1)
How to Use This Book
4(3)
Part I: XML Essentials
Hour 1: Getting to Know XML
7(14)
The What and Why of XML
8(5)
XML and Web Browsers
13(2)
Real-World XML
15(6)
Hour 2: Creating XML Documents
21(22)
A Quick XML Primer
21(8)
Selecting an XML Editor
29(3)
Constructing Your First XML Document
32(3)
Viewing Your XML Document
35(8)
Part II: Defining XML Data
Hour 3: Defining Data with DTD Schemas
43(28)
Creating Your Own Markup Languages
43(2)
Schemas and XML Data Modeling
45(4)
Comparing Schema Technologies
49(1)
The Importance of Document Validation
50(1)
DTD Construction Basics
51(4)
Digging Deeper into Elements
55(6)
Putting Attributes to Work
61(3)
A Complete DTD Example
64(7)
Hour 4: Digging Deeper into XML Documents
71(18)
Leaving a Trail with Comments
71(1)
Characters of Text in XML
72(3)
The Wonderful World of Entities
75(6)
The Significance of Notations
81(2)
Working with CDATA
83(1)
Using XML to Create an Online Radio
83(6)
Hour 5: Putting Namespaces to Use
89(12)
Understanding Namespaces
89(2)
Naming Namespaces
91(2)
Declaring and Using Namespaces
93(8)
Hour 6: Using SVG to Draw Scalable Graphics
101(28)
What Is SVG?
102(1)
SVG and Related Technologies
103(2)
Inside the SVG Language
105(1)
Creating an SVG Drawing
106(18)
Embedding an SVG Drawing in a Web Page
124(5)
Hour 7: Using XML Schema
129(28)
XML Schema Construction Basics
129(4)
Working with Simple Types
133(10)
Digging into Complex Types
143(7)
Namespaces and XSD Schemas
150(1)
A Complete XML Schema Example
151(3)
RELAX NG and the Future of XML Schema
154(3)
Hour 8: Validating XML Documents
157(16)
Document Validation Revisited
157(2)
Validation Tools
159(6)
Repairing Invalid Documents
165(8)
Part III: Formatting and Displaying XML Documents
Hour 9: XML Formatting Strategies
173(16)
Style Sheets and XML Formatting
173(6)
Leveraging CSS, XSLT, and XSL-FO
179(1)
Style Sheets in Action
180(9)
Hour 10: Styling XML Content with CSS
189(34)
Getting to Know CSS
189(8)
Wiring a Style Sheet to an XML Document
197(1)
Your First CSS Style Sheet
198(3)
Inside CSS Positioning
201(11)
The Ins and Outs of Text Formatting
212(5)
Your Second Complete Style Sheet
217(6)
Hour 11: Getting Started with XSL
223(22)
XSL Basics
223(3)
The Pieces and Parts of XSL
226(4)
An XSLT Primer
230(6)
Wiring an XSL Style Sheet to an XML Document
236(1)
Your First XSLT Style Sheet
237(8)
Hour 12: Transforming XML with XSLT
245(26)
A Closer Look at XSLT
245(7)
Pattern Essentials
252(2)
Putting Expressions to Work
254(3)
A Complete XSLT Example
257(3)
Yet Another XSLT Example
260(11)
Hour 13: Access Your iTunes Music Library via XML
271(16)
The Role of XML in iTunes
271(2)
Digging Into the iTunes Library File
273(2)
Linking to Tracks in the iTunes Store
275(3)
Building an iTunes Web Viewer
278(9)
Hour 14: Formatting XML with XSL-FO
287(18)
What Is XSL-FO?
287(2)
Working with the XSL-FO Language
289(8)
Validating an XSL-FO Document
297(1)
Converting an XSL-FO Document to PDF
297(2)
A More Complete XSL-FO Example
299(6)
Hour 15: Using XML to Hack Google Maps
305(24)
Getting to Know Google Maps
305(4)
Google Maps Customization Basics
309(4)
Brainstorming a Custom Mapping Application
313(2)
Developing a Custom Map Document
315(2)
Hacking Together a Custom Google Map
317(12)
Part IV: Processing and Managing XML Data
Hour 16: Parsing XML with the DOM
329(20)
What Is the DOM?
329(1)
How the DOM Works
330(3)
DOM Interfaces
333(1)
Binding XML Data to a Web Page
334(2)
Using the DOM to Access XML Data
336(6)
A Complete DOM Example
342(2)
Updating the DOM Tree
344(5)
Hour 17: SAX: The Simple API for XML
349(18)
What Is SAX?
349(3)
Writing Programs That Use SAX Parsers
352(1)
Obtaining a SAX Parser
352(2)
Using SAX with Java
354(2)
Inside the SAX Sample Program
356(11)
Hour 18: Querying XML Data with XQuery
367(16)
What Is XQuery?
367(1)
XML Data Querying 101
368(5)
Processing XQuery Results
373(1)
Getting to Know Saxon
374(2)
Practical XML Querying with XQuery and Saxon
376(7)
Hour 19: Using XML with Databases
383(18)
A Quick Relational Database Primer
383(2)
The World's Shortest Guide to SQL
385(5)
Databases and XML
390(2)
Exporting an XML Document from a Database
392(2)
Accessing Data from a Database as XML
394(7)
Hour 20: Using XML to Assist Search Engines
401(20)
Web Crawling Basics
402(1)
Getting to Know Google Sitemaps
403(2)
Inside the Google Sitemap Protocol
405(3)
Creating Your Own Sitemap
408(2)
Validating Your Sitemap
410(2)
Submitting Your Sitemap to Google
412(2)
Using an Automated Sitemap Tool
414(7)
Part V: XML's Impact on HTML
Hour 21: Adding Structure to the Web with XHTML
421(18)
XHTML: A Logical Merger
421(2)
Comparing XHTML and HTML
423(1)
Creating and Validating XHTML Documents
424(6)
Migrating HTML to XHTML
430(9)
Hour 22: Addressing and Linking XML Documents
439(32)
Understanding XPath
440(2)
Navigating a Document with XPath Patterns
442(4)
Using XPath Functions
446(3)
The Role of XPath
449(1)
HTML, XML, and Linking
450(6)
Addressing with XPointer
456(3)
Linking with XLink
459(6)
A Complete XLink Example
465(6)
Hour 23: Going Wireless with WML and XHTML Mobile
471(28)
XML and the Wireless Web
472(2)
WML Essentials
474(2)
Creating WML Documents
476(17)
Blending WML with XHTML Mobile
493(6)
Hour 24: Syndicating the Web with RSS News Feeds
499(20)
A Brief History of RSS
500(2)
Using an RSS News Aggregator
502(2)
Inside the RSS 2.0 Language
504(3)
Creating and Validating a News Feed
507(2)
Displaying a News Feed
509(10)
Part VI: Appendix
APPENDIX A: XML Resources
519(6)
General XML Resources
519(1)
XML Tools
520(1)
XML-Based Languages
521(1)
XML Specifications
522(3)
Index 525

Excerpts

Introduction Introduction Of all the software technologies that have come and gone in the relatively short time since we all plugged in to the Web, few have been as far-reaching yet misunderstood as XML. Even with its catchy name that conjures up images of extreme sports, the true nature of XML continues to elude many technical people. The reason has to do with the fact that XML is very much a behind-the-scenes technology that helps to ensure that data is structured in an orderly fashion. There are very few situations where an end-user can see XML at work in a practical application. In this way, XML is a lot like residential building codes. When a house is built, thousands of building codes are used to guide contractors so that the house goes up safe and sound. As a homeowner, it's difficult to look at a finished house and grasp how all these building codes impacted the wood, shingles, and brick that you can see and feel. The building codes are abstract in a sense that you can't touch them, but they play a critical role in the construction process all the same. XML plays a similar role in software, including web sites, operating systems, and distributed applications. I often hear people describe XML as "the new HTML," which sounds good but is not very accurate. XML, unlike HTML, is an extremely broad data-structuring standard that has implications far beyond web pages. For example, consider this question: HTML is to web pages as XML is to what? This is a difficult question to answer because XML isn't really geared toward any one solution. Instead, XML provides the framework for creating customized solutions to a wide range of problems. This is made possible through XML-based markup languages, which are custom markup languages that you create using XML. If you want to chart the statistics of your child's baseball team, you could create your own Little League Markup Language, or LLML, which includes custom tags and attributes for keeping up with important stats such as hits, runs, errors, and parental outbursts. The high degree of structure in your Little League data would allow it to be easily sorted, manipulated, and displayed according to your needs; the data would have the mathematical flexibility of a spreadsheet along with the visual accessibility of a web page. XML makes all this possible. Maybe you have bigger plans for your XML knowledge than just tracking stats for a Little League team. If so, you'll be glad to know that XML is the enabling technology behind all kinds of interesting software applications. Practically all of the big Internet players have invested heavily in XML. As an example, Amazon.com uses XML to expose its product data so that developers can build custom shopping applications. Another interesting application of XML that has caused quite a stir recently is Google Maps, which is Google's innovative online mapping application. Google Maps relies on XML for map data. In fact, in Hour 15 of this book, "Using XML to Hack Google Maps," you learn how to "hack" Google Maps to use your own XML-based maps. One last example of how XML may have sneakily entered your life already is iTunes, Apple's incredibly popular online music store. iTunes uses XML to store information about your music library locally on your computer. With a little bit of effort, you can access your iTunes music library via XML and view or manipulate it any way you choose. This task is covered in Hour 13, "Access Your iTunes Music Library via XML." XML is worth learning because it is an excellent back-end technology for storing and sharing data in a highly structured manner. Another reason for learning XML has to do much more directly with the web: XML is very much shaping the future of HTML. As you may know, HTML is somewhat unstructured in the sense that web developers ta

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.