Sams Teach Yourself XML in 21 Days, Third Edition

Book description

Sams Teach Yourself XML in 21 Days, written by expert author Steve Holzner, offers hundreds of real-world examples demonstrating the uses of XML and the newest tools developers need to make the most of it. In Week One, he starts from basic syntax, and discusses XML document structure, document types, and the benefits of XML Schema. Week Two covers formatting using either CSS or the Extensible Sytlesheet Language, and working with XHTML and other tools for presenting XML data on the Web, or in multimedia applications. The final chapter of week two discusses XForms, the newest way to process forms in XML applications. Week Three applies XML to programming with Java, .NET or JavaScript, and building XML into database or Web Service applications with SOAP. Along the way, Steve shows readers the results of every lesson and provides both the "how" and "why" of the inner working of XML technologies.

Table of contents

  1. Table of Contents (1/4)
  2. Table of Contents (2/4)
  3. Table of Contents (3/4)
  4. Table of Contents (4/4)
  5. Introduction (1/2)
  6. Introduction (2/2)
  7. PART I: At a Glance
    1. DAY 1 Welcome to XML
      1. All About Markup Languages
      2. All About XML
      3. Looking at XML in a Browser
      4. Working with XML Data Yourself
      5. Structuring Your Data
      6. Creating Well-Formed XML Documents
      7. Creating Valid XML Documents
      8. How XML Is Used in the Real World (1/3)
      9. How XML Is Used in the Real World (2/3)
      10. How XML Is Used in the Real World (3/3)
      11. Online XML Resources
      12. Summary
      13. Q&A
      14. Workshop
    2. DAY 2 Creating XML Documents
      1. Choosing an XML Editor
      2. Using XML Browsers
      3. Using XML Validators
      4. Creating XML Documents Piece by Piece (1/2)
      5. Creating XML Documents Piece by Piece (2/2)
      6. Creating Prologs
      7. Creating an XML Declaration
      8. Creating XML Comments
      9. Creating Processing Instructions
      10. Creating Tags and Elements (1/2)
      11. Creating Tags and Elements (2/2)
      12. Creating CDATA Sections
      13. Handling Entities
      14. Summary
      15. Q&A
      16. Workshop
    3. DAY 3 Creating Well-Formed XML Documents
      1. What Makes an XML Document Well-Formed?
      2. Creating an Example XML Document
      3. Understanding the Well-Formedness Constraints (1/2)
      4. Understanding the Well-Formedness Constraints (2/2)
      5. Using XML Namespaces (1/2)
      6. Using XML Namespaces (2/2)
      7. Understanding XML Infosets
      8. Understanding Canonical XML
      9. Summary
      10. Q&A
      11. Workshop
    4. DAY 4 Creating Valid XML Documents: DTDs
      1. All About DTDs
      2. Validating a Document by Using a DTD
      3. Creating Element Content Models (1/3)
      4. Creating Element Content Models (2/3)
      5. Creating Element Content Models (3/3)
      6. Commenting a DTD
      7. Supporting External DTDs
      8. Handling Namespaces in DTDs
      9. Summary
      10. Q&A
      11. Workshop
    5. DAY 5 Handling Attributes and Entities in DTDs
      1. Declaring Attributes in DTDs
      2. Specifying Default Values
      3. Specifying Attribute Types (1/2)
      4. Specifying Attribute Types (2/2)
      5. Handling Entities (1/4)
      6. Handling Entities (2/4)
      7. Handling Entities (3/4)
      8. Handling Entities (4/4)
      9. Summary
      10. Q&A
      11. Workshop
    6. DAY 6 Creating Valid XML Documents: XML Schemas
      1. Using XML Schema Tools (1/2)
      2. Using XML Schema Tools (2/2)
      3. Creating XML Schemas
      4. Dissecting an XML Schema
      5. The Built-in XML Schema Elements
      6. Creating Elements and Types
      7. Specifying a Number of Elements
      8. Specifying Element Default Values
      9. Creating Attributes
      10. Summary
      11. Q&A
      12. Workshop
    7. DAY 7 Creating Types in XML Schemas
      1. Restricting Simple Types by Using XML Schema Facets (1/2)
      2. Restricting Simple Types by Using XML Schema Facets (2/2)
      3. Creating XML Schema Choices
      4. Using Anonymous Type Definitions
      5. Declaring Empty Elements
      6. Declaring Mixed-Content Elements
      7. Grouping Elements Together
      8. Grouping Attributes Together
      9. Declaring all Groups
      10. Handling Namespaces in Schemas
      11. Annotating an XML Schema
      12. Summary
      13. Q&A
      14. Workshop
    8. PART I: In Review
      1. Well-Formed Documents
      2. Valid Documents
  8. PART II: At a Glance
    1. Formatting XML Documents
    2. DAY 8 Formatting XML by Using Cascading Style Sheets
      1. Our Sample XML Document
      2. Introducing CSS
      3. Connecting CSS Style Sheets and XML Documents
      4. Creating Style Sheet Selectors (1/2)
      5. Creating Style Sheet Selectors (2/2)
      6. Using Inline Styles
      7. Creating Style Rule Specifications in Style Sheets (1/4)
      8. Creating Style Rule Specifications in Style Sheets (2/4)
      9. Creating Style Rule Specifications in Style Sheets (3/4)
      10. Creating Style Rule Specifications in Style Sheets (4/4)
      11. Summary
      12. Q&A
      13. Workshop
    3. DAY 9 Formatting XML by Using XSLT
      1. Introducing XSLT
      2. Transforming XML by Using XSLT
      3. Writing XSLT Style Sheets
      4. Using
      5. Using and
      6. Matching Nodes by Using the match Attribute (1/2)
      7. Matching Nodes by Using the match Attribute (2/2)
      8. Working with the select Attribute and XPath (1/3)
      9. Working with the select Attribute and XPath (2/3)
      10. Working with the select Attribute and XPath (3/3)
      11. Using
      12. Using
      13. Using
      14. Specifying the Output Document Type
      15. Summary
      16. Q&A
      17. Workshop
    4. DAY 10 Working with XSL Formatting Objects
      1. Introducing XSL-FO
      2. Using XSL-FO (1/2)
      3. Using XSL-FO (2/2)
      4. Using XSL Formatting Objects and Properties
      5. Building an XSL-FO Document (1/2)
      6. Building an XSL-FO Document (2/2)
      7. Handling Inline Formatting (1/2)
      8. Handling Inline Formatting (2/2)
      9. Formatting Lists
      10. Formatting Tables
      11. Summary
      12. Q&A
      13. Workshop
    5. PART II: In Review
      1. Using CSS
      2. Using XSLT
      3. Using XSL-FO
  9. PART III: At a Glance
    1. XML at Work
    2. DAY 11 Extending HTML with XHTML
      1. Why XHTML?
      2. Writing XHTML Documents
      3. Validating XHTML Documents
      4. The Basic XHTML Elements (1/2)
      5. The Basic XHTML Elements (2/2)
      6. Organizing Text (1/3)
      7. Organizing Text (2/3)
      8. Organizing Text (3/3)
      9. Formatting Text
      10. Selecting Fonts:
      11. Comments:
      12. Summary
      13. Q&A
      14. Workshop
    3. DAY 12 Putting XHTML to Work
      1. Creating Hyperlinks:
      2. Linking to Other Documents:
      3. Handling Images:
      4. Creating Frame Documents:
      5. Creating Frames:
      6. Creating Embedded Style Sheets:
      7. Formatting Tables:
      8. Creating Table Rows:
      9. Formatting Table Headers:
      10. Formatting Table Data:
      11. Extending XHTML
      12. Summary
      13. Q&A
      14. Workshop
    4. DAY 13 Creating Graphics and Multimedia: SVG and SMIL
      1. Introducing SVG
      2. Creating an SVG Document
      3. Creating Rectangles
      4. Adobe’s SVG Viewer
      5. Using CSS Styles
      6. Creating Circles
      7. Creating Ellipses
      8. Creating Lines
      9. Creating Polylines
      10. Creating Polygons
      11. Creating Text
      12. Creating Gradients
      13. Creating Paths
      14. Creating Text Paths
      15. Creating Groups and Transformations
      16. Creating Animation
      17. Creating Links
      18. Creating Scripts
      19. Embedding SVG in HTML
      20. Introducing SMIL
      21. Summary
      22. Q&A
      23. Workshop
    5. DAY 14 Handling XLinks, XPointers, and XForms
      1. Introducing XLinks (1/2)
      2. Introducing XLinks (2/2)
      3. Beyond Simple XLinks
      4. Introducing XPointers (1/2)
      5. Introducing XPointers (2/2)
      6. Introducing XBase
      7. Introducing XForms
      8. Creating Input Controls
      9. Summary
      10. Workshop
    6. PART III: In Review (1/2)
    7. PART III: In Review (2/2)
  10. PART IV: At a Glance
    1. Programming and XML
    2. DAY 15 Using JavaScript and XML
      1. Introducing the W3C DOM
      2. Introducing the DOM Objects (1/2)
      3. Introducing the DOM Objects (2/2)
      4. Working with the XML DOM in JavaScript
      5. Searching for Elements by Name
      6. Reading Attribute Values
      7. Getting All XML Data from a Document (1/2)
      8. Getting All XML Data from a Document (2/2)
      9. Validating XML Documents by Using DTDs
      10. Summary
      11. Q&A
      12. Workshop
    3. DAY 16 Using Java and .NET: DOM
      1. Using Java to Read XML Data (1/4)
      2. Using Java to Read XML Data (2/4)
      3. Using Java to Read XML Data (3/4)
      4. Using Java to Read XML Data (4/4)
      5. Finding Elements by Name
      6. Creating an XML Browser by Using Java (1/2)
      7. Creating an XML Browser by Using Java (2/2)
      8. Navigating Through XML Documents
      9. Writing XML by Using Java (1/2)
      10. Writing XML by Using Java (2/2)
      11. Summary
      12. Q&A
      13. Workshop
    4. DAY 17 Using Java and .NET: SAX
      1. An Overview of SAX
      2. Using SAX (1/3)
      3. Using SAX (2/3)
      4. Using SAX (3/3)
      5. Using SAX to Find Elements by Name
      6. Creating an XML Browser by Using Java and SAX
      7. Navigating Through XML Documents by Using SAX
      8. Writing XML by Using Java and SAX
      9. Summary
      10. Q&A
      11. Workshop
    5. DAY 18 Working with SOAP and RDF
      1. Introducing SOAP
      2. A SOAP Example in .NET (1/2)
      3. A SOAP Example in .NET (2/2)
      4. A SOAP Example in Java (1/3)
      5. A SOAP Example in Java (2/3)
      6. A SOAP Example in Java (3/3)
      7. Introducing RDF (1/3)
      8. Introducing RDF (2/3)
      9. Introducing RDF (3/3)
      10. Summary
      11. Q&A
      12. Workshop
    6. PART IV: In Review (1/2)
    7. PART IV: In Review (2/2)
  11. PART V: At a Glance
    1. Data Handling and XML
    2. DAY 19 Handling XML Data Binding
      1. Introducing DSOs
      2. Binding HTML Elements to HTML Data (1/2)
      3. Binding HTML Elements to HTML Data (2/2)
      4. Binding HTML Elements to XML Data
      5. Binding HTML Tables to XML Data
      6. Accessing Individual Data Fields
      7. Binding HTML Elements to XML Data by Using the XML DSO
      8. Binding HTML Tables to XML Data by Using the XML DSO
      9. Searching XML Data by Using a DSO and JavaScript
      10. Handling Hierarchical XML Data
      11. Summary
      12. Q&A
      13. Workshop
    3. DAY 20 Working with XML and Databases
      1. XML, Databases, and ASP
      2. Storing Databases as XML (1/3)
      3. Storing Databases as XML (2/3)
      4. Storing Databases as XML (3/3)
      5. Using XPath with a Database (1/2)
      6. Using XPath with a Database (2/2)
      7. Introducing XQuery (1/3)
      8. Introducing XQuery (2/3)
      9. Introducing XQuery (3/3)
      10. Summary
      11. Q&A
      12. Workshop
    4. DAY 21 Handling XML in .NET
      1. Creating and Editing an XML Document in .NET (1/2)
      2. Creating and Editing an XML Document in .NET (2/2)
      3. From XML to Databases and Back
      4. Reading and Writing XML in .NET Code (1/2)
      5. Reading and Writing XML in .NET Code (2/2)
      6. Using XML Controls to Display Formatted XML
      7. Creating XML Web Services (1/2)
      8. Creating XML Web Services (2/2)
      9. Summary
      10. Q&A
      11. Workshop
    5. PART V: In Review (1/2)
    6. PART V: In Review (2/2)
  12. APPENDIX A: Quiz Answers
    1. Quiz Answers for Day 1
    2. Quiz Answers for Day 2
    3. Quiz Answers for Day 3
    4. Quiz Answers for Day 4
    5. Quiz Answers for Day 5
    6. Quiz Answers for Day 6
    7. Quiz Answers for Day 7
    8. Quiz Answers for Day 8
    9. Quiz Answers for Day 9
    10. Quiz Answers for Day 10
    11. Quiz Answers for Day 11
    12. Quiz Answers for Day 12
    13. Quiz Answers for Day 13
    14. Quiz Answers for Day 14
    15. Quiz Answers for Day 15
    16. Quiz Answers for Day 16
    17. Quiz Answers for Day 17
    18. Quiz Answers for Day 18
    19. Quiz Answers for Day 19
    20. Quiz Answers for Day 20
    21. Quiz Answers for Day 21
  13. Index
    1. A
    2. B
    3. C
    4. D
    5. E
    6. F
    7. G
    8. H
    9. I
    10. J
    11. K-L
    12. M
    13. N
    14. O
    15. P
    16. Q-R
    17. S (1/2)
    18. S (2/2)
    19. T
    20. U
    21. V
    22. W
    23. X-Z (1/2)
    24. X-Z (2/2)

Product information

  • Title: Sams Teach Yourself XML in 21 Days, Third Edition
  • Author(s): Steven Holzner
  • Release date: October 2003
  • Publisher(s): Sams
  • ISBN: 0672325764