Xml en 24 horas

Solo disponible en BuenasTareas
  • Páginas : 45 (11008 palabras )
  • Descarga(s) : 0
  • Publicado : 19 de enero de 2012
Leer documento completo
Vista previa del texto
[pic]
About the Author 6
Acknowledgments 6
[pic]Tell Us What You Think! 6
Introduction 6
How to Use This Book 7
Conventions Used in This Book 7
Part I: The Basics 7
Hour 1. Getting Started in XML 7
A History of Markup Languages 8
Well-Formed Documents in XML 9
XML as a Metalanguage 9
Your First XML Program 10
[pic]The Self-Documenting Aspects ofXML 13
[pic]The Impact of XML 14
[pic]Summary 14
Q&A 14
Workshop 14
Hour 2. Using HTML Files to Display the Data of XML Files 16
Dynamically Updating the Contents of HTML Tags 16
Using an HTML File to Display the Data in an XML File 17
Importing the Data from Multiple XML Files 20
Summary 22
[pic]Q&A 22
Workshop 23
Hour 3. Objects and XML 24The Relationship Between Objects and XML 24
[pic]Creating Hierarchical Trees for HTML Files 26
[pic]The Node and Nodelist Objects 26
[pic]Creating a Generic Data Extractor for XML Files 27
Error Handling 29
Summary 30
[pic]Q&A 30
[pic]Workshop 31
Hour 4. XML Data Islands 32
The Basics of XML Data Islands 32
Using XML Data Islands to Update theContents of a Node 38
Using XML Data Islands to Read Files of Stored Messages 41
Summary 44
Q&A 44
Workshop 44
Hour 5. Document Type Definitions 46
Predefined Entities 46
[pic]Parsed and Unparsed Entities 48
[pic]The Document Type Definition 48
Separating the DTD into an External File 54
[pic]DTD-Related Properties of the xmldom Object 55
Q&A 58Workshop 58
Part II: Beyond the Basics 60
Hour 6. Attribute Lists and Writing Correct DTDs 60
The Attribute List 60
External Entities 65
Processing Instructions 66
Summary 67
Q&A 67
Workshop 67
Hour 7. Data Typing in XML 68
[pic]An Introduction to Data Types in XML 68
Modifying the Data Type of a Node 73
Error Handling 75
Recovering fromErrors 78
Summary 79
Q&A 79
Workshop 79
Hour 8. Traversing the Node Tree and Adding and Replacing Nodes 81
Traversing a Node Tree 81
Adding Nodes to a Tree 85
[pic]Replacing Nodes in a Tree 90
[pic]Summary 92
Q&A 92
Workshop 93
[pic]Hour 9. Databases and XML 93
The Definition of Your Basic Data Records 94
Reading the Nodes of theCatalog Database 98
Using Button Clicks to Move Through the Database 100
[pic]Summary 106
[pic]Q&A 107
Workshop 107
Hour 10. Using the XML Data Source Object 108
The Data Source Object 108
[pic]Reading Data That Has Multiple Layers of Nodes 112
Summary 117
Workshop 117
Part III: Extensible Stylesheet Language: The Way to Create Stylesheets and AccessDatabases 119
[pic]Hour 11. Introduction to Extensible Stylesheet Language (XSL) 119
Cascading Style Sheets 119
XML Namespaces 122
The XSL Namespace 123
The Role of XSL Templates and Patterns in Web Development 126
Summary 126
Q&A 126
Workshop 127
Hour 12. Using an XSL Template to Read Data from an XML File 127
[pic]Separating the XSL Template from the HTMLFile 127
A Programming Example 127
Changing the Order in Which the Data Is Read 132
Adding Templates to Read the Data That Isn't in the or Nodes 134
[pic]The Advantages of Using Separate Files 135
[pic]Summary 135
[pic]Q&A 135
Workshop 135
Hour 13. Using Multiple XSL Templates to Read Data from Multiple XML Files 136
Working with Two Databases 136Working with the Nodes Created by the XSL Template 140
Cross-Referencing the Two Databases 141
Summary 143
Q&A 143
Workshop 144
Hour 14. Using XSL Templates to Perform Basic Database Queries 145
Using Options in the XSL Templates to Create Selective Data Extractions 145
Sorting the Data 145
Filtering the Data 147
Summary 150
Q&A 152
Workshop 152...
tracking img