Start reading Learning XML on the free Kindle Reading App or on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here.
Programming Books C Java PHP Python Learn more Browse Programming Books

Deliver to your Kindle or other device

Enter a promotion code
or gift card

Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Sorry, this item is not available in
Image not available for
Image not available

Learning XML [Kindle Edition]

Erik T. Ray
3.8 out of 5 stars  See all reviews (45 customer reviews)

Digital List Price: $31.99 What's this?
Print List Price: $39.95
Kindle Price: $17.27
You Save: $22.68 (57%)

Free Kindle Reading App Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.

To get the free app, enter your email address or mobile phone number.


Amazon Price New from Used from
Kindle Edition $17.27  
Paperback $29.65  
Shop the New Digital Design Bookstore
Check out the Digital Design Bookstore, a new hub for photographers, art directors, illustrators, web developers, and other creative individuals to find highly rated and highly relevant career resources. Shop books on web development and graphic design, or check out blog posts by authors and thought-leaders in the design industry. Shop now
This title is not available for Kindle 1st generation devices, but is available for newer Kindle devices and free Kindle reading applications.

Book Description

This second edition of the bestselling Learning XML provides web developers with a concise but grounded understanding of XML (the Extensible Markup Language) and its potential-- not just a whirlwind tour of XML.The author explains the important and relevant XML technologies and their capabilities clearly and succinctly with plenty of real-life projects and useful examples. He outlines the elements of markup--demystifying concepts such as attributes, entities, and namespaces--and provides enough depth and examples to get started. Learning XML is a reliable source for anyone who needs to know XML, but doesn't want to waste time wading through hundreds of web sites or 800 pages of bloated text.For writers producing XML documents, this book clarifies files and the process of creating them with the appropriate structure and format. Designers will learn what parts of XML are most helpful to their team and will get started on creating Document Type Definitions. For programmers, the book makes syntax and structures clear. Learning XML also discusses the stylesheets needed for viewing documents in the next generation of browsers, databases, and other devices.Learning XML illustrates the core XML concepts and language syntax, in addition to important related tools such as the CSS and XSL styling languages and the XLink and XPointer specifications for creating rich link structures. It includes information about three schema languages for validation: W3C Schema, Schematron, and RELAX-NG, which are gaining widespread support from people who need to validate documents but aren't satisfied with DTDs. Also new in this edition is a chapter on XSL-FO, a powerful formatting language for XML. If you need to wade through the acronym soup of XML and start to really use this powerful tool, Learning XML, will give you the roadmap you need.

Editorial Reviews Review

Although Learning XML covers XML rather broadly, it nevertheless presents the key elements of the technology with enough detail to familiarize the reader with this crucial markup language. This guide is brief enough to tackle in a weekend.

Author Erik T. Ray begins with an excellent summary of XML's history as an outgrowth of SGML and HTML. He outlines very clearly the elements of markup, demystifying concepts such as attributes, entities, and namespaces with numerous clear examples. To illustrate a real-world XML application, he gives the reader a look at a document written in DocBook--a publicly available XML document type for publishing technical writings--and explains the sections of the document step by step. A more simplified version of DocBook is used later in the book to illustrate transformation--a powerful benefit of XML.

The all-important Document Type Definition (DTD) is covered in depth, but the still-unofficial alternative, XML Schema, is only briefly addressed. The author makes liberal use of graphics, tables, and code to demonstrate concepts along the way, keeping the reader engaged and on track. Ray also goes deep into some discussion of programming XML utilities with Perl.

Learning XML is a very readable introduction to XML for readers with existing knowledge of markup and Web technologies. It meets its goals very well--to deliver a broad perspective of XML and its potential. --Stephen W. Plain

Topics covered:

  • XML overview
  • XPointer
  • XLink
  • Presentation with Cascading Style Sheets (CSS)
  • Document Type Definitions (DTDs)
  • XML Schemas
  • Transformation with XSLT
  • Internationalization
  • Simple API for XML (SAX)


"...this is not a skimpy overview of XML, but rather a complete introduction to Extensible Markup Language that quickly provides the web developer with a grounding in both how to use it, and what to use it for. The beginner will appreciate the outlining of markup elements, the demystification of concepts, and the code examples aplenty to play with. Those with a basic understanding will like the lack of bloat, and will still find it a useful reference to dip back into when hit by an attack of 'what the heck to I do now', which we all know only too well. Whether you need to get to grips with core concepts, top up your knowledge of Xlink and Xpointer specs, go back to language syntax basics or investigate schemas such as W3C Schema, Schmatron and RELAX-NG, you'll find it all here." Davey Winder, PC Plus, March (7/10)

Product Details

  • File Size: 1569 KB
  • Print Length: 418 pages
  • Simultaneous Device Usage: Unlimited
  • Publisher: O'Reilly Media; 2 edition (June 30, 2009)
  • Sold by: Amazon Digital Services, Inc.
  • Language: English
  • ASIN: B0043D2EAE
  • Text-to-Speech: Enabled
  • X-Ray:
  • Word Wise: Not Enabled
  • Lending: Not Enabled
  • Amazon Best Sellers Rank: #417,962 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?

Customer Reviews

Most Helpful Customer Reviews
123 of 130 people found the following review helpful
3.0 out of 5 stars Suggested New Title: Anatomy of XML March 1, 2003
Format:Paperback|Verified Purchase
By page 177 I realized that I was never going to touch a keyboard while reading this book. I can't speak for everyone, but when I pick up a book expecting to learn the topic, I need theory, reference, examples and structured "assignments". This title offers the first three, but I never get to apply what I am learning hands-on in a graduated fashion. When I am finished, I have little more than the ability to recognize the components of XML. Just because you can recognize all the foods in a grocery store, and know the origins of all the spices on your spice rack, doesn't mean you can cook; the same principal applies here. I am fully aware that XML is comprised of many different elements, and many of the XML development environments are very expensive, but many are free and could have been used to teach the concept clearer.
The title also has many errors, so the errata list on the publisher's web site is important. The book does not include any of the source code, so if you want that, you have to download it. Even then, it is not complete and file titles in the book do not always match the provided code file names.
If you are looking for a hands-on book to learn XML, this isn't the title. If you know XML and are looking for a reference, again - not for you. However, if you are interested in it from more of an administrative overview position, then the title is worth the read. It can provide many answers and give a good base of information without the need to actually write any XML on your own.
Was this review helpful to you?
46 of 46 people found the following review helpful
5.0 out of 5 stars Good transition book from HTML, CSS --> XML June 12, 2001
SHORT: I highly recommend this book if you know HTML and have some exposure to CSS; it's a good intro book to XML, which is what it's intended to be. The end result is that you'll know enough to get started with more technical books, and where to go for available web resources.
LONGER: The reasons that other people have given for not liking this book are some of the same reasons that I find it useful. I'm pretty well-versed in HTML and have some basic understanding of JavaScript and Cascading Style Sheets. This book goes into detail about both and gives comparisons and evolutions that involve XML. I'm about halfway through it at the moment, and it's giving me a clear, not-to-technical view of XML. The other books I have go straight into the code, telling me HOW but not really explaining the WHY of everything. That's what makes this book great to me. The first half deals with explanation and presentation, while the last half is more code-heavy. The two other books I have strive to be highly technical, but proved to be a bit overwhelming for me as a complete newbie to the subject of XML.
Comment | 
Was this review helpful to you?
38 of 39 people found the following review helpful
5.0 out of 5 stars Excellent book for programmers using XML August 22, 2001
Format:Paperback|Verified Purchase
I am a C, Unix Shell, and Perl programmer. This means that I have a lot of interaction with XML.
I'm not really interested in sitting down and learning XML because I wouldnt actually go and write it myself. There are plenty of perl modules (XML::Parser, XML::Twig, and so on) that will do that for me. However, I wanted to have some understanding of what XML actually was, and how to read it if I were presented in it.
This book started very slow and very easily, and moved into some more advanced (if a little more dry) subject matter. The author uses witty, enjoyable examples, and is very clear at all times about what is being explained.
I would recommend this to most programmers who want to just "know what XML is all about," as it isnt particularly technical (if you are just skimming), and its technical enough for people to get into if need be. It also covers most topics very thoroughly.
Another gem from OReilly.
Comment | 
Was this review helpful to you?
28 of 30 people found the following review helpful
4.0 out of 5 stars A Good Introduction for XML Authors October 1, 2001
The book "Learning XML" by Eric T. Ray is a basic introduction to XML. It covers the markup elements, links, presentation, data type definition, transformations and programming for XML.

The book is truly for the novice. The very basic concepts are introduced and illustrated in great detail. The text is written quite well, and the illustrations do help to understand the presented concepts and examples.

The first chapters on the core concepts, the markup elements, links and presentation in XML describe all syntax elements using a graphical syntax illustration. The components of syntax elements are clearly labeled and referred to in the text. The application of all elements is further illustrated with simple examples that concentrate on the essence of the different markup elements.

The chapter on DTDs is equally well written and DTD concepts and syntax elements are introduced in the same careful way as the markup elements in the first chapters. I would have expected more than 4 pages on XML schema. Yes, it's still a draft, but the basic behavior and structure are pretty well defined by now, and parsers accepting XML schema are available.

The text has a couple of chapters and sections that disappointed me. The chapter on transformations isn't structured as well as the rest of the book and contains a 20 page long, undocumented and uncommented example of an XSLT transformation program. This example has not been written by the author, and that might be reason it is not explained in detail, but at least a few comments would have been nice.

The last chapter on programming for XML is the most disappointing one. The elements of an XML processor are only introduced very briefly.
Read more ›
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
4.0 out of 5 stars Four Stars
A good overview of the technology and related technologies. Gives a solid orientation to the basic concepts.
Published 1 month ago by Camera Dad
5.0 out of 5 stars Five Stars
Anot her well put together book from O'Reilly.
Published 3 months ago by Karlton D Prillerman
2.0 out of 5 stars Misleading Title...
"Learning XML" is not a name that adequately describes the book's contents. I'm aware that one shouldn't judge a book by it's cover, and I suppose I made such a mistake. Read more
Published 7 months ago by Chris Coscina
4.0 out of 5 stars Four Stars
Was recommended to me by one of our developers. Good primer for xml
Published 7 months ago by drbobert
4.0 out of 5 stars Srosxi's Review
I thought the product was exactly what I needed at the time that I purchased it and the purchase process was smooth and efficient.
Published 24 months ago by Andrew Helyer
4.0 out of 5 stars Good material, unintentionally funny in places
I haven't finished the book as of yet, but so far it's clearly written with working examples to illustrate the concepts under discussion. Read more
Published on September 30, 2010 by J. Marburger
5.0 out of 5 stars Good, basic introduction to XML
This text was the required reading for an intro to XML programming class that I am taking.

I have had a little XML experience prior to this class, and can write HTML... Read more
Published on September 13, 2010 by J. Cauhape
4.0 out of 5 stars Great Book for Learning XML
This book taught me a lot about XML and how it is used in the digital publishing world. XML is not limited to web sites and is a great resource for businesses institutions and... Read more
Published on March 1, 2007 by M. Marshall
4.0 out of 5 stars Not a Standalone book, good otherwise
1. YOU WILL NOT TOUCH A KEYBOARD USING THIS BOOK, IT DOESN'T NOT WALK THROUGH EXAMPLES- for those books, try "XML step by step" by Young (Microsoft), and for more advanced, "XML in... Read more
Published on December 9, 2006 by Scott Colson
2.0 out of 5 stars bad book, too much nonsense
full of nonsense in whole book.

For example, xml schemas chapter is from page 108 to 164 about 60 pages, but realy useful w3c xml schema only take less 8 pages, others,... Read more
Published on October 5, 2006 by Fei Li
Search Customer Reviews
Search these reviews only

More About the Author

Discover books, learn about writers, read author blogs, and more.

What Other Items Do Customers Buy After Viewing This Item?


There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
First post:
Prompts for sign-in

Look for Similar Items by Category