Uh-oh, it looks like your Internet Explorer is out of date.

For a better shopping experience, please upgrade now.

Sams Teach Yourself XML in 21 Days / Edition 3

Sams Teach Yourself XML in 21 Days / Edition 3

by Steven E. Holzner

ISBN-10: 0672325764

ISBN-13: 9780672325762

Pub. Date: 10/10/2003

Publisher: Sams

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


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.

Product Details

Publication date:
Sams Teach Yourself Series
Edition description:
Product dimensions:
7.40(w) x 9.00(h) x 1.70(d)

Table of Contents

Part IAt a Glance7
Day 1Welcome to XML9
All About Markup Languages10
All About XML12
Looking at XML in a Browser17
Working with XML Data Yourself20
Structuring Your Data24
Creating Well-Formed XML Documents24
Creating Valid XML Documents25
How XML Is Used in the Real World26
Online XML Resources37
Day 2Creating XML Documents43
Choosing an XML Editor44
Using XML Browsers46
Using XML Validators48
Creating XML Documents Piece by Piece51
Creating Prologs58
Creating an XML Declaration59
Creating XML Comments60
Creating Processing Instructions62
Creating Tags and Elements63
Creating CDATA Sections70
Handling Entities73
Day 3Creating Well-Formed XML Documents77
What Makes an XML Document Well-Formed?78
Creating an Example XML Document80
Understanding the Well-Formedness Constraints84
Using XML Namespaces92
Understanding XML Infosets102
Understanding Canonical XML103
Day 4Creating Valid XML Documents: DTDs107
All About DTDs108
Validating a Document by Using a DTD112
Creating Element Content Models113
Commenting a DTD127
Supporting External DTDs128
Handling Namespaces in DTDs133
Day 5Handling Attributes and Entities in DTDs141
Declaring Attributes in DTDs142
Specifying Default Values146
Specifying Attribute Types150
Handling Entities160
Day 6Creating Valid XML Documents: XML Schemas179
Using XML Schema Tools181
Creating XML Schemas189
Dissecting an XML Schema192
The Built-in XML Schema Elements193
Creating Elements and Types195
Specifying a Number of Elements200
Specifying Element Default Values201
Creating Attributes202
Day 7Creating Types in XML Schemas207
Restricting Simple Types by Using XML Schema Facets208
Creating XML Schema Choices214
Using Anonymous Type Definitions215
Declaring Empty Elements217
Declaring Mixed-Content Elements218
Grouping Elements Together219
Grouping Attributes Together221
Declaring all Groups222
Handling Namespaces in Schemas222
Annotating an XML Schema233
Part I In Review239
Well-Formed Documents241
Valid Documents241
Part IIAt a Glance247
Formatting XML Documents247
Day 8Formatting XML by Using Cascading Style Sheets249
Our Sample XML Document250
Introducing CSS252
Connecting CSS Style Sheets and XML Documents254
Creating Style Sheet Selectors256
Using Inline Styles262
Creating Style Rule Specifications in Style Sheets263
Day 9Formatting XML by Using XSLT285
Introducing XSLT286
Transforming XML by Using XSLT288
Writing XSLT Style Sheets293
Using [left angle bracket]xsl:apply - templates[right angle bracket]295
Using [left angle bracket]xsl:value - of[right angle bracket] and [left angle bracket]xsl:for - each[right angle bracket]298
Matching Nodes by Using the match Attribute301
Working with the select Attribute and XPath309
Using [left angle bracket]xsl:copy[right angle bracket]321
Using [left angle bracket]xsl:if[right angle bracket]323
Using [left angle bracket]xsl:choose[right angle bracket]324
Specifying the Output Document Type327
Day 10Working with XSL Formatting Objects331
Introducing XSL-FO332
Using XSL-FO333
Using XSL Formatting Objects and Properties341
Building an XSL-FO Document344
Handling Inline Formatting353
Formatting Lists362
Formatting Tables365
Part II In Review371
Using CSS371
Using XSLT373
Using XSL-FO375
Part IIIAt a Glance379
XML at Work379
Day 11Extending HTML with XHTML381
Why XHTML?382
Writing XHTML Documents386
Validating XHTML Documents390
The Basic XHTML Elements391
Organizing Text397
Formatting Text408
Selecting Fonts: [left angle bracket]font[right angle bracket]411
Comments: [left angle bracket]!--[right angle bracket]415
Day 12Putting XHTML to Work419
Creating Hyperlinks: [left angle bracket]a[right angle bracket]419
Linking to Other Documents: [left angle bracket]link[right angle bracket]422
Handling Images: [left angle bracket]img[right angle bracket]425
Creating Frame Documents: [left angle bracket]frameset[right angle bracket]427
Creating Frames: [left angle bracket]frame[right angle bracket]429
Creating Embedded Style Sheets: [left angle bracket]style[right angle bracket]432
Formatting Tables: [left angle bracket]table[right angle bracket]435
Creating Table Rows: [left angle bracket]tr[right angle bracket]437
Formatting Table Headers: [left angle bracket]th[right angle bracket]438
Formatting Table Data: [left angle bracket]td[right angle bracket]440
Extending XHTML443
Day 13Creating Graphics and Multimedia: SVG and SMIL449
Introducing SVG450
Creating an SVG Document454
Creating Rectangles456
Adobe's SVG Viewer456
Using CSS Styles457
Creating Circles460
Creating Ellipses461
Creating Lines462
Creating Polylines462
Creating Polygons463
Creating Text464
Creating Gradients466
Creating Paths467
Creating Text Paths469
Creating Groups and Transformations471
Creating Animation472
Creating Links474
Creating Scripts476
Embedding SVG in HTML478
Introducing SMIL479
Day 14Handling XLinks, XPointers, and XForms485
Introducing XLinks486
Beyond Simple XLinks494
Introducing XPointers498
Introducing XBase504
Introducing XForms504
Creating Input Controls512
Part III In Review521
Part IVAt a Glance529
Programming and XML529
Day 15Using JavaScript and XML531
Introducing the W3C DOM532
Introducing the DOM Objects534
Working with the XML DOM in JavaScript544
Searching for Elements by Name549
Reading Attribute Values551
Getting All XML Data from a Document554
Validating XML Documents by Using DTDs560
Day 16Using Java and .NET: DOM567
Using Java to Read XML Data568
Finding Elements by Name584
Creating an XML Browser by Using Java589
Navigating Through XML Documents596
Writing XML by Using Java597
Day 17Using Java and .NET: SAX607
An Overview of SAX608
Using SAX610
Using SAX to Find Elements by Name623
Creating an XML Browser by Using Java and SAX628
Navigating Through XML Documents by Using SAX633
Writing XML by Using Java and SAX637
Day 18Working with SOAP and RDF645
Introducing SOAP646
A SOAP Example in .NET650
A SOAP Example in Java656
Introducing RDF668
Part IV In Review683
Part VAt a Glance691
Data Handling and XML691
Day 19Handling XML Data Binding693
Introducing DSOs694
Binding HTML Elements to HTML Data696
Binding HTML Elements to XML Data703
Binding HTML Tables to XML Data706
Accessing Individual Data Fields709
Binding HTML Elements to XML Data by Using the XML DSO711
Binding HTML Tables to XML Data by Using the XML DSO714
Searching XML Data by Using a DSO and JavaScript716
Handling Hierarchical XML Data720
Day 20Working with XML and Databases727
XML, Databases, and ASP728
Storing Databases as XML731
Using XPath with a Database743
Introducing XQuery749
Day 21Handling XML in .NET765
Creating and Editing an XML Document in .NET766
From XML to Databases and Back776
Reading and Writing XML in .NET Code777
Using XML Controls to Display Formatted XML784
Creating XML Web Services789
Part V In Review801
Appendix AQuiz Answers807
Quiz Answers for Day 1807
Quiz Answers for Day 2808
Quiz Answers for Day 3808
Quiz Answers for Day 4808
Quiz Answers for Day 5809
Quiz Answers for Day 6809
Quiz Answers for Day 7810
Quiz Answers for Day 8810
Quiz Answers for Day 9810
Quiz Answers for Day 10811
Quiz Answers for Day 11811
Quiz Answers for Day 12811
Quiz Answers for Day 13812
Quiz Answers for Day 14812
Quiz Answers for Day 15812
Quiz Answers for Day 16813
Quiz Answers for Day 17813
Quiz Answers for Day 18814
Quiz Answers for Day 19814
Quiz Answers for Day 20814
Quiz Answers for Day 21815

Customer Reviews

Average Review:

Post to your social network


Most Helpful Customer Reviews

See all customer reviews