XML Books

Stanek, W., R. (2002) XML Pocket Consultant, Microsoft Press

The practical, portable guide to XML! Build and support dynamic, Web-enabled documents with this indispensable guide to XML. This pocket-sized resource zeroes in on the latest XML standards and technologies, including Extensible Stylesheet Language (XSL), XML schemas, XLink, and XPath–delivering critical details through quick-reference tables, step-by-step instructions, lists, and code samples. It’s the precise information you need to solve problems and get the job done–no matter what kind of content you want to get on line!


Young, M., J. (2002) XML STEP BY STEP, Second Edition, Microsoft Press

Learn XML fundamentals with this step-by-step guide!

Download Example Code (ZIP 42KB)

Teach yourself how to put the latest XML technology and standards to work—one step at a time! This thoroughly updated and expanded book expertly guides you through the process of creating XML documents and displaying them on the Web. Use the easy-to-follow lessons and hands-on exercises to learn essential techniques—and stay ahead of the curve by working with real-world examples in the Microsoft® Internet Explorer 6.0 browser and the Microsoft XML Parser (MSXML) 4.0. No matter what kind of content you want to get on line, this practical, proven tutorial shows how you can quickly and easily apply XML to the task. DISCOVER HOW TO: • Write well-formed and valid XML documents based on W3C specifications • Use namespaces to avoid naming conflicts • Create valid XML documents using document type definitions (DTDs) • Work with XML schemas • Display XML using Internet Explorer versions 5.0-6.0 and MSXML versions 2.0-4.0 • Format XML using cascading style sheets (CSS Level 1 and Level 2) • Produce powerful Extensible Stylesheet Language Transformations (XSLT) style sheets • Use data binding and XML Document Object Model scripts to display XML in HTML Web pages INCLUDED ON CD-ROM: • Internet Explorer 6.0 • MSXML 4.0 and SDK • Copies of all source listings inside the book • Links to additional information and resources


Table of Contents vii
Introduction xi
Why Another XML Book? xi / What You’ll Learn in This Book xii / XML Step by Step, Internet Explorer, and MSXML xiv / Using the Companion CD xvi / Requirements xviii / How to Contact the Author xix / Microsoft Press Support Information xix
PART 1   Getting Started 1
CHAPTER 1   Why XML? 3
The Need for XML 4 / Displaying XML Documents 10 / SGML, HTML, and XML 11 / The Official Goals of XML 12 / Standard XML Applications 14 / Real-World Uses for XML 15 / XML Applications for Enhancing XML Documents 19
CHAPTER 2   Creating and Displaying Your First XML Document 21
Creating an XML Document 21 / Displaying the XML Document 29
PART 2   CREATING XML DOCUMENTS 43
CHAPTER 3   Creating Well-Formed XML Documents 45
The Parts of a Well-Formed XML Document 46 / Adding Elements to the Document 50 / Adding Attributes to Elements 62 / Using Namespaces 69
CHAPTER 4   Adding Comments, Processing Instructions, and CDATA Sections 81
Inserting Comments 81 / Using Processing Instructions 83 / Including CDATA Sections 86
CHAPTER 5   Creating Valid XML Documents Using Document Type Definitions 91
The Basic Criteria for a Valid XML Document 92 / The Advantages of Making an XML Document Valid 93 / Adding the Document Type Declaration 95 / Declaring Element Types 98 / Declaring Attributes 107 / Using Namespaces in Valid Documents 117 / Using an External DTD Subset 120 / Converting a Well-Formed Document to a Valid Document 125
CHAPTER 6   Defining and Using Entities 131
Entity Definitions and Classifications 131 /Declaring General Entities 135 / Declaring Parameter Entities 143 / Inserting Entity
References 148 / Inserting Character References 153 / Using
Predefined Entities 156 / Adding Entities to a Document 157
CHAPTER 7   Creating Valid XML Documents Using XML Schemas 163
XML Schema Basics 165 / Declaring Elements 167 / Declaring an Element with a Simple Type 169 / Declaring Attributes 182 / Creating an XML Schema and an Instance Document 186
PART 3   DISPLAYING XML DOCUMENTS ON THE WEB 193
CHAPTER 8   Displaying XML Documents Using Basic Cascading Style Sheets 195
The Basic Steps for Using a Cascading Style Sheet 197 / Cascading in Cascading Style Sheets 211 / Setting the display Property 215 / Setting Font Properties 221 / Setting the font-variant Property 231 / Setting the color Property 232 / Setting Background Properties 235 / Setting Text Spacing and Alignment Properties 246
CHAPTER 9   Displaying XML Documents Using Advanced Cascading Style Sheets 257
Setting Box Properties 258 / Using Pseudo-Elements (Internet Explorer 5.5 through 6.0 Only) 285 / Inserting HTML Elements into XML Documents 286 / Creating and Using a Full-Featured Cascading Style Sheet 291
CHAPTER 10   Displaying XML Documents Using Data Binding 297
The Main Steps 298 / The First Step: Linking the XML Document to the HTML Page 299 / The Second Step: Binding HTML Elements to XML Elements 303 / Using Paging 309 / Using Scripts with the DSO 350
CHAPTER 11   Displaying XML Documents Using Document Object Model Scripts 357
Linking the XML Document to the HTML Page 359 / The Structure of the DOM 360 / Accessing and Displaying XML Document Elements 367 / Accessing and Displaying XML Document Attribute Values 384 / Accessing XML Entities and Notations 388 / Traversing an Entire XML Document 392 / Checking an XML Document for Validity 398
CHAPTER 12   Displaying XML Documents Using XML Style Sheets 409
Using an XSLT Style Sheet—the Basics 411 / Using a Single XSLT Template 412 / Using Multiple Templates 432 / Using Other Select and Match Expressions 435 / Filtering and Sorting XML Data 440 / Accessing XML Attributes 451 / Referencing Namespaces in XSLT 457 / Using Conditional Structures 459
APPENDIX   Web Addresses for Further Information 461
General Information on XML 461 / Internet Explorer and MSXML 462 / XML Applications 462 / Namespaces 462 / URIs and URNs 462 / XML Schemas 463 / Cascading Style Sheets (CSS) 463 / Data Binding and the Data Source Object (DSO) 464 / ActiveX Data Objects (ADO) and the ADO recordset Object 464 / HTML and Dynamic HTML (DHTML) 464 / Microsoft JScript 464 / The Document Object Model (DOM) 465 / Extensible Stylesheet Language Transformations (XSLT) and XPath 465 / Author’s Web Site 465

Morrison, Michael (2006) Sams Teach Yourself XML in 24 Hours: Complete Starter Kit, Third Edition

Download Source CodeSource Code (ZIP 1,951KB)

The third edition of Sams Teach Yourself XML in 24 Hours, Complete Starter Kit is 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 will 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 Edition will teach you what you need to know to get up and running with XML and more importantly, how to do cool things with it!

Table of Contents

Introduction.

How This Book Is Structured.

What You’ll Need.

How to Use This Book.

I: XML ESSENTIALS.

HOUR 1: Getting to Know XML.

The What and Why of XML.

XML and Web Browsers.

Real-World XML.

HOUR 2: Creating XML Documents.

A Quick XML Primer.

Selecting an XML Editor.

Constructing Your First XML Document.

Viewing Your XML Document.

II: DEFINING XML DATA.

HOUR 3: Defining Data with DTD Schemas.

Creating Your Own Markup Languages.

Schemas and XML Data Modeling.

Comparing Schema Technologies.

The Importance of Document Validation.

DTD Construction Basics.

Digging Deeper into Elements.

Putting Attributes to Work.

A Complete DTD Example.

HOUR 4: Digging Deeper into XML Documents.

Leaving a Trail with Comments.

Characters of Text in XML.

The Wonderful World of Entities.

The Significance of Notations.

Working with CDATA.

Using XML to Create an Online Radio.

HOUR 5: Putting Namespaces to Use.

Understanding Namespaces.

Naming Namespaces.

Declaring and Using Namespaces.

HOUR 6: Using SVG to Draw Scalable Graphics.

What Is SVG?

SVG and Related Technologies.

Inside the SVG Language.

Creating an SVG Drawing.

Embedding an SVG Drawing in a Web Page.

HOUR 7: Using XML Schema.

XML Schema Construction Basics.

Working with Simple Types.

Digging into Complex Types.

Namespaces and XSD Schemas.

A Complete XML Schema Example.

RELAXNG and the Future of XML Schema.

HOUR 8: Validating XML Documents.

Document Validation Revisited.

Validation Tools.

Repairing Invalid Documents.

III: FORMATTING AND DISPLAYING XML DOCUMENTS.

HOUR 9: XML Formatting Strategies.

Style Sheets and XML Formatting.

Leveraging CSS, XSLT, and XSL-FO.

Style Sheets in Action.

HOUR 10: Styling XML Content with CSS.

Getting to Know CSS.

Wiring a Style Sheet to an XML Document.

Your First CSS Style Sheet.

Inside CSS Positioning.

The Ins and Outs of Text Formatting.

Your Second Complete Style Sheet.

HOUR 11: Getting Started with XSL.

XSL Basics.

The Pieces and Parts of XSL.

An XSLT Primer.

Wiring an XSL Style Sheet to an XML Document.

Your First XSLT Style Sheet.

HOUR 12: Transforming XML with XSLT.

A Closer Look at XSLT.

Pattern Essentials.

Putting Expressions to Work.

A Complete XSLT Example.

Yet Another XSLT Example.

HOUR 13: Access Your iTunes Music Library via XML.

The Role of XML in iTunes.

Digging Into the iTunes Library File.

Linking to Tracks in the iTunes Store.

Building an iTunes Web Viewer.

HOUR 14: Formatting XML with XSL-FO.

What Is XSL-FO?

Working with the XSL-FO Language.

Validating an XSL-FO Document.

Converting an XSL-FO Document to PDF.

A More Complete XSL-FO Example.

HOUR 15: Using XML to Hack Google Maps.

Getting to Know Google Maps.

Google Maps Customization Basics.

Brainstorming a Custom Mapping Application.

Developing a Custom Map Document.

Hacking Together a Custom Google Map.

IV: PROCESSING AND MANAGING XML DATA.

HOUR 16: Parsing XML with the DOM.

What Is the DOM?

How the DOM Works.

DOM Interfaces.

Binding XML Data to a Web Page.

Using the DOM to Access XML Data.

A Complete DOM Example.

Updating the DOM Tree.

HOUR 17: SAX: The Simple API for XML.

What Is SAX?

Writing Programs That Use SAX Parsers.

Obtaining a SAX Parser.

Using SAX with Java.

Inside the SAX Sample Program.

HOUR 18: Querying XML Data with XQuery.

What Is XQuery?

XML Data Querying 101.

Processing XQuery Results.

Getting to Know Saxon.

Practical XML Querying with XQuery and Saxon.

HOUR 19: Using XML with Databases.

A Quick Relational Database Primer.

The World’s Shortest Guide to SQL.

Databases and XML.

Exporting an XML Document from a Database.

Accessing Data from a Database as XML.

HOUR 20: Using XML to Assist Search Engines.

Web Crawling Basics.

Getting to Know Google Sitemaps.

Inside the Google Sitemap Protocol.

Creating Your Own Sitemap.

Validating Your Sitemap.

Submitting Your Sitemap to Google.

Using an Automated Sitemap Tool.

V: XML’S IMPACT ON HTML.

HOUR 21: Adding Structure to the Web with XHTML.

XHTML: A Logical Merger.

Comparing XHTML and HTML.

Creating and Validating XHTML Documents.

Migrating HTML to XHTML.

HOUR 22: Addressing and Linking XML Documents.

Understanding XPath.

Navigating a Document with XPath Patterns.

Using XPath Functions.

The Role of XPath.

HTML, XML, and Linking.

Addressing with XPointer.

Linking with XLink.

A Complete XLink Example.

HOUR 23: Going Wireless with WML and XHTML Mobile.

XML and the Wireless Web.

WML Essentials.

Creating WML Documents.

Blending WML with XHTML Mobile.

HOUR 24: Syndicating the Web with RSS News Feeds.

A Brief History of RSS.

Using an RSS News Aggregator.

Inside the RSS 2.0 Language.

Creating and Validating a News Feed.

Displaying a News Feed.

VI: APPENDIX.

APPENDIX A: XML Resources.

General XML Resources.

XML Tools.

XML-Based Languages.

XML Specifications.


Castro, Elizabeth. (2001) XML for the World Wide Web (Visual QuickStart Guides), PeachPit Press

There is a newer edition of this book.

Download Source Files for Windows/Unix (ZIP 603KB)

Companion web site: http://www.elizabethcastro.com/xml/

Web-maven Elizabeth Castro, who has penned Peachpit books on HTML,Perl and CGI, and Netscape, now tackles XML–an indispensable tool for creating personalized, updated content for each visitor on your site. Whether you build Web pages for a living or you’re taking on anew hobby, XML for the World Wide Web contains everything you need to create dynamic Web sites by writing XML code, developing custom XML applications with DTDs and schemas, transforming XML into personalized Web content through XSLT-based transformations, and professionally formatting XML documents with Cascading Style Sheets.The real power of XML lies in combining information from various sources and generating personalized content for different visitors.Castro’s easy-to-follow graphics show exactly what XML looks like,and her real-world examples explain how to transform and streamline your Web-site creation process by automatically updating content.

The Visual QuickStart Guide series from Peachpit Press is known for boiling topics down to the essentials and presenting them in an engaging, efficient way to get the reader up to speed quickly. In applying this model to XML, author Elizabeth Castro had her work cut out for her.

Fortunately for her readers, Castro has successfully identified the core components of XML and presented them in a streamlined way. XML for the World Wide Web doesn’t tackle any of the advanced elements of XML technology, such as SOAP, SAX or integration with the Document Object Model (DOM). Instead, it focuses on teaching the basic nuts and bolts of creating XML documents, styling them and defining their structure.

This book moves at a fast pace. Document Type Definitions (DTD), for instance, get only 30 pages of coverage. This tight format is composed of simple examples that illustrate commands and concepts instead of pages of text. The pages are presented in a two-column format so that code fragments can be wisely placed alongside the step-by-step explanatory text. Each topic example is supplemented with one or more useful implementation tips.

For a true grasp on XML and all of its potential, you will need to follow up this introductory tutorial with more reading on the applications of the technology and case studies. But this little book is a great way to learn the basics of XML in a weekend. —Stephen W. Plain

Topics covered:

  • XML documents
  • Document Type Definitions (DTDs)
  • Schemas
  • Namespaces
  • XSLT and XPath
  • Cascading style sheets (CSS)
  • XLink
  • XPointer

Table of Contents

Introduction.

The Problem with HTML. The Power of XML. XML’s Helpers. XML in the Real World. About This Book. What This Book Is Not. The XML VQS Website.I. XML.

1. Writing XML.
Elements, Attributes, and Values. Rules for Writing XML. Declaring the XML Version. Creating the Root Element. Writing Non-Empty Elements. Nesting Elements. Adding Attributes. Using Empty Elements. Writing Comments. Writing Five Special Symbols. Displaying Elements as Text.II. DTDS.

2. Creating a DTD.
Declaring an Internal DTD. Writing an External DTD. Naming an External DTD. Declaring a Personal External DTD. Declaring a Public External DTD.

3. Defining Elements and Attributes in a DTD.
Defining Elements. Defining an Element to Contain Only Text. Defining an Element to Contain One Child. Defining an Element to Contain a Sequence. Defining Choices. Defining How Many Units. About Attributes. Defining Simple Attributes. Defining Attributes with Unique Values. Referencing Attributes with Unique Values. Restricting Attributes to Valid XML Names.
4. Entities and Notations in DTDs.
Creating Shortcuts for Text. Using Shortcuts for Text. Shortcuts for Text in External Files. Creating and Using Shortcuts for DTDs. Creating Entities for Unparsed Content. Embedding Unparsed Content.III. XML SCHEMA AND NAMESPACES.5. XML Schema.
Simple and Complex Types. Local and Global Declarations. Beginning a Simple Schema. Indicating a Simple Schema’s Location. Annotating Schemas.

6. Defining Simple Types.
Declaring an Element with a Simple Type. Using Date and Time Types. Using Number Types. Deriving Custom Simple Types. Using Anonymous Custom Types. Specifying a Set of Acceptable Values. Specifying a Pattern for a Simple Type. Specifying a Range of Acceptable Values. Limiting the Length of a Simple Type. Limiting a Number’s Digits. Creating List Types. Predefining an Element’s Content.
7. Defining Complex Types.
Defining Elements to Contain Only Elements. Requiring Elements to Appear in Sequence. Creating a Set of Choices. Allowing Elements to Appear in Any Order. Defining Named Groups. Referencing a Named Group. Referencing Already Defined Elements. Controlling How Many. Defining Elements to Contain Only Text. Defining Empty Elements. Defining Elements with Mixed Content. Basing Complex Types on Complex Types. Declaring an Element of Complex Type. Elements with Anonymous Complex Types. Declaring Attributes. Requiring an Attribute. Predefining an Attribute’s Content. Defining Attribute Groups. Referencing Attribute Groups.
8. Using Namespaces in XML.
Designing a Namespace Name. Declaring Default Namespaces. Namespaces for Individual Elements. How Namespaces Affect Attributes. Namespaces, DTDs, and Valid Documents.
9. Namespaces, Schemas, and Validation.
Schemas and Namespaces. Populating a Namespace. Adding All Locally Declared Elements. Adding Particular Locally Declared Elements. Referencing Components with Namespaces. The Schema of Schemas as the Default. Namespaces and Validating XML. Indicating Where a Schema Is. Schemas in Multiple Files. Importing Components.IV. XSLT AND XPATH.10. XSLT.
Transforming XML with XSLT. Beginning an XSLT Style Sheet. Creating the Root Template. Outputting HTML Code. Outputting a Node’s Content. Creating and Applying Template Rules. Batch-Processing Nodes. Processing Nodes Conditionally. Adding Conditional Choices. Sorting Nodes Before Processing. Generating Attributes.

11. XPath: Patterns and Expressions.
Determining the Current Node. Referring to the Current Node. Selecting a Node’s Children. Selecting a Node’s Parent or Siblings. Selecting All of the Descendants. Disregarding the Current Node. Selecting a Node’s Attributes. Selecting Subsets.
12. Test Expressions and Functions.
Comparing Two Values. Testing the Position. Subtotaling Values. Counting Nodes. Multiplying, Dividing, Adding, Subtracting. Formatting Numbers. Rounding Numbers. Extracting Substrings. Capitalizing Strings.V. CASCADING STYLE SHEETS.13. Setting up CSS.
CSS with XML vs CSS with HTML. CSS1, CSS2, and Browsers. The Anatomy of a Style. Specifying Where Styles Are To Be Applied. Creating an External Style Sheet. Calling a Style Sheet for an XML Document. Calling a Style Sheet for an HTML Document. Using Internal Style Sheets. Applying Styles Locally.

14. Layout with CSS.
Defining Elements as Block-Level or Inline. Hiding Elements Completely. Offsetting Elements In the Natural Flow. Positioning Elements Absolutely. Setting the Height or Width for an Element. Setting the Border. Adding Padding Around an Element. Setting the Margins around an Element. Wrapping Text around Elements. Stopping Text Wrap. Changing the Foreground Color. Changing the Background. Positioning Elements in 3D. Aligning Elements Vertically. Determining Where Overflow Should Go. Clipping an Element. Setting List Properties. Specifying Page Breaks.
15. Formatting Text with CSS.
Choosing a Font Family. Embedding Fonts on a Page. Creating Italics. Applying Bold Formatting. Setting the Font Size. Setting the Line Height. Setting All Font Values at Once. Setting the Text Color. Changing the Text’s Background. Controlling Spacing. Aligning Text. Underlining Text. Changing the Text Case.VI. XLINK AND XPOINTER.16. Links and Images: XLink and XPointer.
Creating a Simple Link. Creating a Linkset. Defining Reference Points. Defining Connections. Using a Linkset. Linking to Part of a File. Creating the Simplest XPointer. Creating Walking XPointers. Creating an XPointer Range.

Appendix A: XHTML.
How Does a Browser Know? Writing XHTML. Declaring a DTD for XHTML.
Appendix B: XML Tools.
Validating XML Files against a DTD. Validating XML with a Schema. Transforming XML with an XSLT Processor.
Appendix C: Special Symbols.
Using Character References. Table I: Characters. Table II: Symbols.
Appendix D: Colors in Hex.
Finding a Color’s RGB Components-in Hex. Hexadecimal Equivalents. The Hexadecimal System.


Goldberg, K.H. (2008) Xml: Visual QuickStart Guide (Visual QuickStart Guides), Second Edition, PeachPit Press

Download eBook PDF (PDF 3,769KB)
AllDownload Code Examples_Chapter_Examples (ZIP 19,111KB)

Companion Web Site: http://www.kehogo.com/xml2e
Download Code Examples by Chapter: http://www.kehogo.com/examples

What is XML? XML, or eXtensible Markup Language, is a specification for storing information. It is also a specification for describing the structure of that information. And while XML is a markup language (just like HTML), XML has no tags of its own. It allows the person writing the XML to create whatever tags they need. The only condition is that these newly created tags adhere to the rules of the XML specification.

In the seven years since the first edition of “XML: Visual QuickStart Guide” was published, XML has taken its place next to HTML as a foundational language on the Internet. XML has become a very popular method for storing data and the most popular method for transmitting data between all sorts of systems and applications. The reason being, where HTML was designed to display information, XML was designed to manage it.

This book begins by showing you the basics of the XML language. Then, by building on that knowledge, additional and supporting languages and systems will be discussed. To get the most out of this book, you should be somewhat familiar with HTML, although you don’t need to be an expert coder by any stretch. No other previous knowledge is required.

“XML: Visual QuickStart Guide, 2nd Edition” is divided into seven parts. Each part contains one or more chapters with step-by-step instructions that explain how to perform XML-related tasks. Wherever possible, examples of the concepts being discussed are displayed, and the parts of the examples on which to focus are highlighted.

The order of the book is intentionally designed to be an introduction to the fundamentals of XML, followed by discussions of related XML technologies.

•    In Part 1 of the book, you will learn how to create an XML document. It’s relatively straightforward, and even more so if you know a little HTML.

•    Part 2 focuses on XSL, which is a set of languages designed to transform an XML document into something else: an HTML file, a PDF document, or another XML document. Remember, XML is designed to store and transport data, not display it.

•    Parts 3 and 4 of the book discuss DTD and XML Schema, languages designed to define the structure of an XML document. In conjunction with XML Namespaces (Part 5), you can guarantee that XML documents conform to a pre-defined structure, whether created by you or by someone else.

•    Part 6, Developments and Trends, details some of the up-and-coming XML-related languages, as well as a few new versions of existing languages.

•    Finally, Part 7 identifies some well-known uses of XML in the world today; some of which you may be surprised to learn.

This beginner’s guide to XML is broken down as follows:
•    Introduction
•    Chapter 1:  Writing XML

•    Part 2:  XSL
•    Chapter 2:  XSLT
•    Chapter 3:  XPath Patterns and Expressions
•    Chapter 4:  XPath Functions
•    Chapter 5:  XSL-FO

•    Part 3:  DTD
•    Chapter 6:  Creating a DTD
•    Chapter 7:  Entities and Notations in DTDs
•    Chapter 8:  Validation and Using DTDs

•    Part 4:  XML Schema
•    Chapter 9:  XML Schema Basics
•    Chapter 10:  Defining Simple Types
•    Chapter 11:  Defining Complex Types

•    Part 5:  Namespaces
•    Chapter 12:  XML Namespaces
•    Chapter 13:  Using XML Namespaces

•    Part 6:  Recent W3C Recommendations
•    Chapter 14:  XSLT 2.0
•    Chapter 15:  XPath 2.0
•    Chapter 16:  XQuery 1.0

•    Part 7:  XML in Practice
•    Chapter 17:  Ajax, RSS, SOAP and More


McGrath, M. and Yarnold, S. (2007) XML In Easy Steps, Second Edition, Computer Step

Download Example Code (ZIP 422KB)

“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.”

XML in easy steps instructs you on how to employ XML data documents. It is completely updated from the first edition of this title, which described the emerging XML technologies, to demonstrate those parts of XML that have become popular in today’s real-world applications. Clear step-by-step instructions are provided to explain each aspect of XML, and screenshots illustrate every example.

XML in easy steps describes the eXtensible Markup Language(XML), together with the associated technologies of Document Type Definition (DTD), XmlSchema Documents (XSD), and the eXtensible Stylesheet Language (XSL). It 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. You don’t need to have previous knowledge of any markup language so it’s ideal for the newcomer to XML. By the end of this book you will have gained a sound understanding of XML and be able to create your own well-formed XML documents and validating schemas.

XML in easy steps has an easy-to-follow style that will appeal to anyone who wants to begin using XML. It will appeal to programmers who want to quickly add XML to their skills set, the enthusiast who wants to explore the possibilities of XML, and to those seeking a career in web development who need an understanding of XML.

Table of Contents

Chapter 1 Creating XML documents

* Introducing XML
* Differences between XML and HTML
* Advantages of XML
* Uses of XML
* Writing an XML document
* Styling XML with CSS
* Understanding XML syntax
* Correcting XML errors
* Employing an XML editor
* Adding comments & entities
* Avoiding XML attributes
* Summary

Chapter 2 Writing DTD schemas

* Introducing schemas
* Nominating a DTD for XML
* Creating a DTD schema
* Specifying element sequence
* Controlling element occurence
* Allowing alternative elements
* Permitting element attributes
* Requiring attribute values
* Adding comments & entities
* Summary

Chapter 3 Writing XSD schemas

* Comparing schema types
* Nominating an XSD for XML
* Creating an XSD schema
* Specifying element sequence
* Controlling element occurence
* Allowing alternative elements
* Permitting element attributes
* Requiring attribute values
* Adding comments & entities
* Summary

Chapter 4 Adding XSD restrictions

* Restricting numeric content
* Restricting date content
* Creating custom restrictions
* Restricting by range
* Restricting string length
* Restricting digit length
* Restricting by pattern
* Enumerating allowable content
* Summary

Chapter 5 Using XML namespaces

* Introducing namespaces
* Applying your own namespace
* Qualifying namespaces
* Including other schemas
* Styling the default namespace
* Importing other namespaces
* Styling multiple namespaces
* Using the XLink namespace
* Summary

Chapter 6 Writing XSL stylesheets

* Introducing XSL
* Selecting element values
* Selecting each element
* Sorting selected elements
* Selecting elements on condition
* Choosing alternative elements
* Applying multiple templates
* Generating attribute values
* Summary

Chapter 7 Adding XPath expressions

* Introducing XPath
* Selecting child nodes
* Selecting parents & siblings
* Selecting nodes by position
* Selecting nodes by comparison
* Counting selected nodes
* Formatting node values
* Manipulating node values
* Summary

Chapter 8 Producing SVG graphics

* Introducing SVG
* Producing graphic shapes
* Producing graphic lines
* Producing graphic paths
* Transforming graphic groups
* Adding hyperlinks in SVG
* Scripting for graphic events
* Embedding SVG in HTML
* Summary

Chapter 9 Scripting the XML DOM

* Introducing the XML DOM
* Loading XML data
* Adding cross-browser support
* Addressing tag names
* Addressing child nodes
* Filtering by node type
* Getting all data
* Selecting specific data
* Summary

Chapter 10 Deploying XML with AJAX


Deane, S. and Henderson, R. (2004) XML Made Simple (Made Simple Programming), Routledge