XML in Easy Steps is designed for new users who want to quickly get up to speed, from job seekers to programmers to hobbyists. In clear, step-by-step instructions, and with screenshots illustrating every example, it demonstrates the parts of XML that have become popular in today's real-world applications. The book begins with a description of eXtensible Markup Language (XML) along with the associated technologies of Document Type Definition (DTD), XmlSchema Documents (XSD), and the eXtensible Stylesheet Language (XSL). It then illustrates how XML can be used to create Scalable Vector Graphics (SVG), how to access XML data with JavaScript, and how to deploy XML in modern AJAX web applications. At the book’s end, even the newcomer has a solid understanding of XML and can create well-formed documents and validating schemas.
About the Author
Mike McGrath now lives in South-east Europe, on the sun-kissed shores of the Aegean Sea. Mike gained his extensive knowledge of computer languages while working as a developer contracting to companies around the world. His interests include coins of ancient Greece, dining-out with friends, and the ongoing evolution of the world wide web.
| Creating XML documents | p. 7 |
| Introducing XML | p. 8 |
| Differences between XML and HTML | p. 8 |
| Advantages of XML | p. 9 |
| Uses of XML | p. 9 |
| Writing an XML document | p. 10 |
| Styling XML with CSS | p. 12 |
| Understanding XML syntax | p. 14 |
| Correcting XML errors | p. 16 |
| Employing an XML editor | p. 18 |
| Adding comments & entities | p. 20 |
| Avoiding XML attributes | p. 22 |
| Summary | p. 24 |
| Writing DTD schemas | p. 25 |
| Introducing schemas | p. 26 |
| Nominating a DTD for XML | p. 27 |
| Creating a DTD schema | p. 28 |
| Specifying element sequence | p. 30 |
| Controlling element occurence | p. 32 |
| Allowing alternative elements | p. 34 |
| Permitting element attributes | p. 36 |
| Requiring attribute values | p. 38 |
| Adding comments & entities | p. 40 |
| Summary | p. 42 |
| Writing XSD schemas | p. 43 |
| Comparing schema types | p. 44 |
| Nominating an XSD for XML | p. 45 |
| Creating an XSD schema | p. 46 |
| Specifying element sequence | p. 48 |
| Controlling element occurence | p. 50 |
| Allowing alternative elements | p. 52 |
| Permitting element attributes | p. 54 |
| Requiring attribute values | p. 56 |
| Adding comments & entities | p. 58 |
| Summary | p. 60 |
| Adding XSD restrictions | p. 61 |
| Restricting numeric content | p. 62 |
| Restricting date content | p. 64 |
| Creating custom restrictions | p. 66 |
| Restricting by range | p. 68 |
| Restricting string length | p. 70 |
| Restricting digit length | p. 72 |
| Restricting by pattern | p. 74 |
| Enumerating allowable content | p. 76 |
| Summary | p. 78 |
| Using XML namespaces | p. 79 |
| Introducing namespaces | p. 80 |
| Applying your own namespace | p. 82 |
| Qualifying namespaces | p. 84 |
| Including other schemas | p. 86 |
| Styling the default namespace | p. 88 |
| Importing other namespaces | p. 90 |
| Styling multiple namespaces | p. 92 |
| Using the XLink namespace | p. 94 |
| Summary | p. 96 |
| Writing XSL stylesheets | p. 97 |
| Introducing XSL | p. 98 |
| Selecting element values | p. 100 |
| Selecting each element | p. 102 |
| Sorting selected elements | p. 104 |
| Selecting elements on condition | p. 106 |
| Choosing alternative elements | p. 108 |
| Applying multiple templates | p. 110 |
| Generating attribute values | p. 112 |
| Summary | p. 114 |
| Adding XPath expressions | p. 115 |
| Introducing XPath | p. 116 |
| Selecting child nodes | p. 118 |
| Selecting parents & siblings | p. 120 |
| Selecting nodes by position | p. 122 |
| Selecting nodes by comparison | p. 124 |
| Counting selected nodes | p. 126 |
| Formatting node values | p. 128 |
| Manipulating node values | p. 130 |
| Summary | p. 132 |
| Producing SVG graphics | p. 133 |
| Introducing SVG | p. 134 |
| Producing graphic shapes | p. 136 |
| Producing graphic lines | p. 138 |
| Producing graphic paths | p. 140 |
| Transforming graphic groups | p. 142 |
| Adding hyperlinks in SVG | p. 144 |
| Scripting for graphic events | p. 146 |
| Embedding SVG in HTML | p. 148 |
| Summary | p. 150 |
| Scripting the XML DOM | p. 151 |
| Introducing the XML DOM | p. 152 |
| Loading XML data | p. 154 |
| Adding cross-browser support | p. 156 |
| Addressing tag names | p. 158 |
| Addressing child nodes | p. 160 |
| Filtering by node type | p. 162 |
| Getting all data | p. 164 |
| Selecting specific data | p. 166 |
| Summary | p. 168 |
| Deploying XML with AJAX | p. 169 |
| Introducing AJAX | p. 170 |
| Creating a request object | p. 172 |
| Sending a request | p. 174 |
| Processing response data | p. 176 |
| Designing an AJAX application | p. 178 |
| Loading data for AJAX | p. 180 |
| Notifying updates in AJAX | p. 182 |
| Running the AJAX application | p. 184 |
| Summary | p. 186 |
| Index | p. 187 |
| Table of Contents provided by Ingram. All Rights Reserved. |
ISBN: 9781840783377
ISBN-10: 1840783370
Series: IN EASY STEPS
Audience:
General
Format:
Paperback
Language:
English
Number Of Pages: 192
Published: 1st November 2007
Dimensions (cm): 22.6 x 18.4
x 1.2
Weight (kg): 0.44