0%

Book Description

Sams Teach Yourself XML in 24 Hours teaches you the fundamental concepts of XML using practical, hands-on examples. Rather than dwelling on dry theory, the book is filled with clear, real-world examples of how the technology can be used today. Coverage includes displaying XML files in HTML files, parsing HTML files into corresponding hierarchical tree structure, embedding XML code into an HTML file, using Extensible Style Sheets (XSL), performing queries in XSL, and building an online store.

Table of Contents

  1. Copyright
  2. About the Author
  3. Acknowledgments
  4. Tell Us What You Think!
  5. Introduction
  6. The Basics
    1. Getting Started in XML
      1. A History of Markup Languages
      2. Well-Formed Documents in XML
      3. XML as a Metalanguage
      4. Your First XML Program
      5. The Self-Documenting Aspects of XML
      6. The Impact of XML
      7. Summary
      8. Q&A
      9. Workshop
    2. Using HTML Files to Display the Data of XML Files
      1. Dynamically Updating the Contents of HTML Tags
      2. Using an HTML File to Display the Data in an XML File
      3. Importing the Data from Multiple XML Files
      4. Summary
      5. Q&A
      6. Workshop
    3. Objects and XML
      1. The Relationship Between Objects and XML
      2. Creating Hierarchical Trees for HTML Files
      3. The Node and Nodelist Objects
      4. Creating a Generic Data Extractor for XML Files
      5. Error Handling
      6. Summary
      7. Q&A
      8. Workshop
    4. XML Data Islands
      1. The Basics of XML Data Islands
      2. Using XML Data Islands to Update the Contents of a Node
      3. Using XML Data Islands to Read Files of Stored Messages
      4. Summary
      5. Q&A
      6. Workshop
    5. Document Type Definitions
      1. Predefined Entities
      2. Parsed and Unparsed Entities
      3. The Document Type Definition
      4. Separating the DTD into an External File
      5. DTD-Related Properties of the xmldom Object
      6. Q&A
      7. Workshop
  7. Beyond the Basics
    1. Attribute Lists and Writing Correct DTDs
      1. The Attribute List
      2. External Entities
      3. Processing Instructions
      4. Summary
      5. Q&A
      6. Workshop
    2. Data Typing in XML
      1. An Introduction to Data Types in XML
      2. Modifying the Data Type of a Node
      3. Error Handling
      4. Recovering from Errors
      5. Summary
      6. Q&A
      7. Workshop
    3. Traversing the Node Tree and Adding and Replacing Nodes
      1. Traversing a Node Tree
      2. Adding Nodes to a Tree
      3. Replacing Nodes in a Tree
      4. Summary
      5. Q&A
      6. Workshop
    4. Databases and XML
      1. The Definition of Your Basic Data Records
      2. Reading the <Book> Nodes of the Catalog Database
      3. Using Button Clicks to Move Through the <Catalog> Database
      4. Summary
      5. Q&A
      6. Workshop
    5. Using the XML Data Source Object
      1. The Data Source Object
      2. Reading Data That Has Multiple Layers of Nodes
      3. Summary
      4. Workshop
  8. Extensible Stylesheet Language: The Way to Create Stylesheets and Access Databases
    1. Introduction to Extensible Stylesheet Language (XSL)
      1. Cascading Style Sheets
      2. XML Namespaces
      3. The XSL Namespace
      4. The Role of XSL Templates and Patterns in Web Development
      5. Summary
      6. Q&A
      7. Workshop
    2. Using an XSL Template to Read Data from an XML File
      1. Separating the XSL Template from the HTML File
      2. A Programming Example
      3. Changing the Order in Which the Data Is Read
      4. Adding Templates to Read the Data That Isn't in the <Author> or <Publisher> Nodes
      5. The Advantages of Using Separate Files
      6. Summary
      7. Q&A
      8. Workshop
    3. Using Multiple XSL Templates to Read Data from Multiple XML Files
      1. Working with Two Databases
      2. Working with the Nodes Created by the XSL Template
      3. Cross-Referencing the Two Databases
      4. Summary
      5. Q&A
      6. Workshop
    4. Using XSL Templates to Perform Basic Database Queries
      1. Using Options in the XSL Templates to Create Selective Data Extractions
      2. Sorting the Data
      3. Filtering the Data
      4. Summary
      5. Q&A
      6. Workshop
    5. Using Conditional XSL Statements and Embedding Scripting Code to Perform Database Queries
      1. The XSL Elements
      2. The xsl:if Element
      3. The xsl:choose, xsl:when, and xsl:otherwise Elements
      4. The xsl:eval Element
      5. Summary
      6. Q&A
      7. Workshop
    6. Using XSL Selection and Boolean Operators to Perform Database Queries
      1. The xsl:comment Element
      2. The XSL Selection Operators
      3. The ALL Operator
      4. The XSL Boolean Operators
      5. Summary
      6. Q&A
      7. Workshop
    7. Using XSL Comparison and Collection Operators and XSL Methods to Perform Database Queries
      1. The Equality Operators
      2. The Comparison Operators
      3. The all and any Operators
      4. Accessing the Contents of a Node Using the value() Method
      5. The selectSingleNode() Method
      6. The end() Method
      7. The index() Method
      8. Summary
      9. Q&A
      10. Workshop
  9. XML in e-Commerce and Other Advanced Topics
    1. The Document Object Model
      1. The Data Extraction and Node Collection Methods
      2. The Document Object Model
      3. Document Object Methods
      4. The Properties and Methods of the Node Object
      5. Properties and Methods of the nodeList Object
      6. Summary
      7. Q&A
      8. Workshop
    2. The XML Schema Language
      1. The Basics of Schemas
      2. The ElementType Declaration
      3. Assigning Values to minOccurs and maxOccurs
      4. Attribute Type Declarations
      5. Attribute Types Supported in IE
      6. Summary
      7. Q&A
      8. Workshop
    3. Creating an Online Bookstore
      1. The Structure of the <Catalog> Database
      2. The Database of Additional Information
      3. The Data Form of a Purchased Item
      4. The Bookstore's Opening Page
      5. Summary
      6. Q&A
      7. Workshop
    4. Accessing the Databases for an Online Bookstore
      1. Constructing the Page Used to Search the Database
      2. Searching the Online Book Database
      3. Displaying the List of Purchased Books
      4. Summary
      5. Q&A
      6. Workshop
    5. Processing and Displaying Purchases in an Online Bookstore
      1. The Client-Server Model of the World Wide Web
      2. The Querystring Environment Variable
      3. Microsoft Personal Web Server (PWS)
      4. Creating Text Files on the Server
      5. Summary
      6. Q&A
      7. Workshop
    6. Links in XML: XLink and XPointer
      1. Links in HTML
      2. XLink Construction
      3. XLink Global Attributes
      4. Writing DTDs for XLink Objects
      5. XPointer
      6. Summary
      7. Q&A
      8. Workshop
    7. Additional Markup Languages
      1. Vector Markup Language
      2. Mathematical Markup Language
      3. Virtual Reality Modeling Language
      4. Real Estate Listing Markup Language
      5. Human Resources Management Markup Language
      6. VoxML
      7. Summary
      8. Q&A
      9. Workshop
  10. Index
44.220.41.148