- ISBN13: 9780596101497
- Condition: NEW
- Notes: Brand New from Publisher. No Remainder Mark.
Product Description
Java and XML, 3rd Edition, shows you how to cut through all the hype about XML and put it to work. It teaches you how to use the APIs, tools, and tricks of XML to build real-world applications. The result is a new approach to managing information that touches everything from configuration files to web sites.
After two chapters on XML basics, including XPath, XSL, DTDs, and XML Schema, the rest of the book focuses on using XML from your Java applications. This third edition of Java and XML covers all major Java XML processing libraries, including full coverage of the SAX, DOM, StAX, JDOM, and dom4j APIs as well as the latest version of the Java API for XML Processing (JAXP) and Java Architecture for XML Binding (JAXB). The chapters on web technology have been entirely rewritten to focus on the today’s most relevant topics: syndicating content with RSS and creating Web 2.0 applications. You’ll learn how to create, read, and modify RSS feeds for syndicated content and use XML to power the next generation of websites with Ajax and Adobe Flash.
Topics include:
- The basics of XML, including DTDs, namespaces, XML Schema, XPath, and Transformations
- The SAX API, including all handlers, filters, and writers
- The DOM API, including DOM Level 2, Level 3, and the DOM HTML module
- The JDOM API, including the core and a look at XPath support
- The StAX API, including StAX factories, producing documents and XMLPull
- Data Binding with JAXB, using the new JAXB 2.0 annotations
- Web syndication and podcasting with RSS
- XML on the Presentation Layer, paying attention to Ajax and Flash applications
If you are developing with Java and need to use XML, or think that you will be in the future; if you’re involved in the new peer-to-peer movement, messaging, or web services; or if you’re developing software for electronic commerce, Java and XML will be an indispensable companion.


Although the seller’s description of the book as being in good shape was surely truthful, their use of an envelope, rather than a more rigid shipping container resulted in the softcover book sustaining cosmetic damage during shipping.
Rating: 2 / 5
Ho trovato questo libro molto interessante.
Copre le varie API disponibili per JAVA per gestire file XML: SAX, DOM, JAXP, StAX, JDOM, dom4j. Inoltre vengono trattati anche alcuni argomenti avanzati, utili per apprendere al meglio l’uso di queste API.
Il libro e’ colmo di codice ed e’ proprio il codice ad essere utilizzato come strumento didattico. Codice e diagrammi UML riempiono tutte le pagine.
E’ un libro molto pratico, rivolto ai programmatori. E’ necessario avere una piccola infarinatura riguardo l’XML: viene trattato brevemente nei primi capitoli.
E’ consigliato a chi ama libri con un approccio pragmatico.
mircha
Rating: 4 / 5
I’m almost finished with this book, but have yet to determine what its purpose is. There is a lot of code about a lot of APIs, but it is not clear how one should approach Java & XML using this book. I think this book was a product of O’Reilly’s “Rough Cuts” program, and it is true the book is very roughly written and all the good stuff got cut. Maybe all the material which would make this a good book is on the website.
I must admit I’m very disappointed with O’Reilly as of late. Their books are going down hill rapidly, and I find I’m looking at other publishers (APress) much more often. I used to go to O’Reilly’s website almost daily to see what is coming out next, but now I’m considering removing the Ora bookmark from my browser because of lack of use and to create space for other URLs.
I really wish O’Reilly would get their act together and start publishing some well written and well edited books again.
Rating: 1 / 5
Are you developing with Java and need to use XML? If you are, then this book is for you. Authors Brett McLaughlin and Justin Edelson, have done an outstanding job of writing a book that that cuts through all of the hype about XML and put it to work.
McLaughlin and Justin Edelson, begin with the basics of XML. Then, the authors cover three ways of defining the structure of XML documents. Next, they introduce the Simple API for XML (SAX). They also cover less-used, but still powerful items in the API. The authors continue by covering DOM basics. Then, they discuss the various Level 2 and Level 3 DOM modules like Traversal, Range, Events, Style, HTML, Load and Save, and Validation. Next, the authors examine the Java API for XML Processing. In addition, they also show you how to SAX and how it compares to both SAX and DOM. They continue by examining JDOM, a Java-specific object model API. Then, the authors examine another Java-specific object model API, dom4j. Next, they cover JAXB 1.0 and 2.0, as well as the general basics of data binding. Furthermore, the authors show you how to syndicate content. They continue by looking at a variety of techniques for using XML in the presentation, or visual portion of web applications. Finally, the authors provide some brief overview of technologies not covered in depth in this book.
This most excellent book shows you how to use the APIs, tools, and tricks of XML to build real world applications. Perhaps more importantly, this book offers a new approach to managing information that touches everything from configuration files to web sites.
Rating: 5 / 5
[Review of 3rd Edition]
Being able to work effectively with XML is getting to be nearly a requirement for a Java developer. The book Java and XML (3rd Edition) by Brett D. McLaughlin and Justin Edelson focuses specifically on the relationship between those two technologies, as well as what options are available for parsing an XML file.
Contents:
Introduction; Constraints; SAX; Advanced SAX; DOM; DOM Modules; JAXP; Pull Parsing with StAX; JDOM; dom4j; Data Binding with JAXB; Content Syndication with RSS; XML As Presentation; Looking Forward; Appendix – SAX Features and Properties; Index
SAX and DOM parsers have entirely different approaches and uses when it comes to reading an XML file. The book does a good job of explaining those differences, as well as showing coding examples of how those parsing routines would look in Java. The additional coverage of lesser-known parsers like StAX is also appreciated, as you may not always have the choice of which methodology and API you’d like to use. I felt that the combination of code samples and diagrams of hierarchies was done well, and anyone with a good background with Java and XML would have no problem going forward from here. The only part of the book I felt could have been left out, strangely enough, was the introduction and constraints chapter. The book is not a complete introduction to either Java or XML (nor did I expect it to be). If you come in with the prerequisite knowledge I think you’d need, the first two chapters are unnecessary. And if you come in as a complete beginner to both subjects, the chapters don’t go into nearly enough detail for you to proceed. While it seems “proper” to have introductory material in a book, in this case I think you could have left those out entirely and just jumped right in to the parser material.
Nitpicking on the first two chapters aside, this is definitely a book that the Java/XML developer will find useful. Most of what you’ll need to know can be found here…
Rating: 4 / 5