Buy Used
Used - Very Good See details
Price: Ģ2.80

Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Image not available

Tell the Publisher!
I’d like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Java and XML: Solutions to Real-World Problems (Java Series) [Paperback]

Brett McLaughlin
4.5 out of 5 stars  See all reviews (12 customer reviews)

Available from these sellers.


Amazon Price New from Used from
Paperback --  
There is a newer edition of this item:
Java and XML Java and XML 1.0 out of 5 stars (1)
In stock.

Book Description

1 Sep 2001 0596001975 978-0596001971 2

While the XML "buzz" still dominates talk among Internet developers, the critical need is for information that cuts through the hype and lets Java programmers put XML to work. Java & XML shows how to use the APIs, tools, and tricks of XML to build real-world applications, with the end result that both the data and the code are portable.This second edition of Java & XML adds chapters on Advanced SAX and Advanced DOM, new chapters on SOAP and data binding, and new examples throughout. A concise chapter on XML basics introduces concepts, and the rest of the book focuses on using XML from your Java applications. Java developers who need to work with XML, or think that they will in the future--as well as developers involved in the new peer-to-peer movement, messaging, or web services--will find the new Java & XML a constant companion.This book covers:

  • The basics of XML, including DTDs, namespaces, XML Schema, XPath, and XSL
  • The SAX API, including all handlers, the SAX 2 extensions, filters, and writers
  • The DOM API, including DOM Level 2, Level 3, and the Traversal, Range, CSS, Events, and HTML modules.
  • The JDOM API, including the core, a look at XPath support, and JDOM as a JSR
  • Using web publishing frameworks like Apache Cocoon
  • Developing applications with XML-RPC
  • Using SOAP and UDDI for web services
  • Data Binding, using both DTDs and XML Schema for constraints
  • Building business-to-business applications with XML
  • Building information channels with RSS and dynamic content with XSP
Includes a quick reference on SAX 2.0, DOM Level 2, and JDOM.

Product details

  • Paperback: 518 pages
  • Publisher: O'Reilly Media; 2 edition (1 Sep 2001)
  • Language: English
  • ISBN-10: 0596001975
  • ISBN-13: 978-0596001971
  • Product Dimensions: 23.5 x 17.9 x 2.7 cm
  • Average Customer Review: 4.5 out of 5 stars  See all reviews (12 customer reviews)
  • Amazon Bestsellers Rank: 1,016,826 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Author

Discover books, learn about writers, and more.

Product Description

Amazon Review

Brett McLaughlin's Java and XML is a well-informed guide to the partnership between two key technologies. For this 2nd edition, the author has slimmed down the introductory material on XML, making room for expanded coverage of fast-moving topics such as JAXP, SOAP and Web Services. There is plenty of new material, so this is a book worth buying even if you have the earlier edition. The author is a co-founder of JDOM, an XML document API, and is a well-known contributor to various other open-source projects. It is no surprise to find a focus on open-source tools and resources in this book.

This title does not aim to teach either Java or XML from scratch, although the first two chapters do offer an XML crash course. The following chapters cover SAX 2.0, a standard API for parsing XML, and after that there is a detailed look at the DOM (Document Object Model). JDOM gets extensive coverage, as you would expect from the author's involvement, and there is a strong chapter on JAXP, the official API for XML parsing from Sun Microsystems, explaining why it is widely misunderstood and how it complements other standards such as SAX. The second half of the book offers a chapter each on more advanced topics. One covers Web publishing frameworks, with a particular focus on Apache Cocoon. After that the author covers XML-RPC, SOAP and Web services. A chapter on content syndication shows how to use XSL and RSS (Rich Site Summary) to publish and consume information. Next comes data binding using the Castor or Zeus frameworks, or Sun's official JAXB API. Finally there is a brief look at up-and-coming APIs, and a concise reference for SAX, DOM, JDOM and JAXP.

Practical, informative and well-written, this book is ideal for professionals who are either working with Java and XML, or considering doing so. --Tim Anderson


"Excellent book for Java programmers who need to understand how to handle XML. -- Ken North, Dr Dobbs

Good book on Java and XML. Well written, covers lots of things and use cases for XML. The author is one of the authors of JDOM and has excellent XML knowledge. -- Stephen Schmidt,

This book contains an enormous wealth of info about Java's tying with essentials of XML. One book that your Java programming bookcase should not be without. -- Columbia Java User Group

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Customer Reviews

4.5 out of 5 stars
4.5 out of 5 stars
Most Helpful Customer Reviews
17 of 18 people found the following review helpful
By A Customer
I obtained a copy of this book in a pre-release, and after 20 mins of skimming throught the index I was captivated by the depth of information it contained. This book will be take great pride in any bookshelf as it undertakes valuable "hot" words such as XSLT and other like the differences between Schemas and DTD.
I have used this book as a reference guide to construct a simple base of transfering information from HTML through XSLT and then XML to JAVA and then to my DataBase. Invaluable. I can recommend this book to all that are looking to expand their knowledge.
In a negative light I can put forward that it's focus on the way that XHTML will be implemmented by the W3C is rather sketchy and should be used as a quick reference instead of a concise bible.
As I have had to return this book to its rightfull owner, I am most unhappy. Never mind, as I wil soon have it again...
Comment | 
Was this review helpful to you?
10 of 11 people found the following review helpful
This book does not go into great depth for each of the techniques - SOAP, XML, XML-RPC, and so on - and it should not. This book is great if you want to get the helicopter view - how do these techniques fit together, so that you can build a whole application. The examples are short and succinct, and can be read while sitting / lying in your favourite reading place. If I have to name one bad thing, then it is that this book tries to take on a such a big area, that it misses on some smaller bits, for example Sun's Java XML pack, because that came out after this book was published.
Comment | 
Was this review helpful to you?
2 of 2 people found the following review helpful
5.0 out of 5 stars Exellent book for serious xml processing 7 Jan 2002
I bought 4 books in one year (Professional XML, XML Bible, Java applications with XML, all sucks). The last was this book. Only in this I found explanations on detailled features of Xerces sax parsing. For example, all details for namespaces processing.
The book is very well written. It explains the base and the details, and is easy to read.
It uses the xml jakarta tools, which are the standard in many J2EE servers like WebLogic. The Cocoon framework in also detailled.
Comment | 
Was this review helpful to you?
4.0 out of 5 stars The title does not do the book justice! 18 Nov 2005
I borrowed this book off a friend from work with the view it was using XML with Java, which of course it covers very well, I felt that it seriously downplayed that it also covered Web publishing frameworks, RPC's, SOAP, Webservices, Content syndication and Data Binding.
Maybe I would have stumbled across this book if the title hinted it covered 'distributed' or 'web services'.
I've not used much 'distributed' code before, but when I found out about the XML-RPC I was gobsmacked how easy it was. Then gently you're introduced into the realm of SOAP and webservices and realise what all the hype is about.
Now I've only reached chapter 12 (SOAP), but felt I had to write a review after reading one of the reviews that slated the book with only two stars.
The 'Web Publishing Framework' chapter I felt needing more of a polish, I got to the end with too many questions buzzing around my head, all the other chapters left me thinking 'Yep, I understand now'.
Here's my view of his comments, from my perspective..
"To find out what SAX and DOM are you have to wade through lots of inconsequential information, only to discover that SAX allows you to parse an XML document on the fly, but doesn't retain it in memory; whereas DOM keeps the document in memory and allows you to manipulate it. Big deal. I could have worked this out by doing some Google searches."
Well, you can find out anything using an internet search and most people would not be too sure when to use SAX versus DOM and the book does explain this in detail. I wouldn't say the chapter has any inconsequential information in it, it's the first book where I've felt the author pitches it right.
Read more ›
Comment | 
Was this review helpful to you?
2.0 out of 5 stars Disappointing 27 Jan 2005
By Daniel
This book did not come up to the expectations that were set by the other reviewers and by O'Reilly themselves.
I bought Java & XML a couple of years ago. I diligently read the first couple of chapters, found it unhelpful and put it aside. To find out what SAX and DOM are you have to wade through lots of inconsequential information, only to discover that SAX allows you to parse an XML document on the fly, but doesn't retain it in memory; whereas DOM keeps the document in memory and allows you to manipulate it. Big deal. I could have worked this out by doing some Google searches.
I am writing this review because I have just picked up my (dusty) copy from the bookshelf in the hope of finding something interesting. I was surprised to see that the first example on SAX actually includes a JTree, even though McLaughlin says to ignore it, it is typical of the book to include something irrelevant. What he doesn't say is that the JTree code is really there to make the example longer, so that there are more pages in the book, and so justifies a higher price. You're not going to spend 45 dollars on a weedly little manual, are you? You want something chunky.
When reading this sort of book, I get the feeling that O' Reilly, and similar technical publishers, put a lot of effort into inflating their publications into bigger manuals with lots of pages. McLaughlin is obviously an expert, but he is constrained by the O'Reilly house style. This is deliberately conversational and longwinded so that while you feel that it is easy reading, you don't realize they are just making it more difficult to learn simple concepts. They also pepper the pages with long code examples. That way they sell more books. Other examples are XSLT and XSLT cooktop: both these O'Reilly manuals could have been condensed into one book by just cutting the waffle.
Don't get me wrong, I don't enjoy dry, academic journals but at the same time I just wish they would get to the point quicker.
Comment | 
Was this review helpful to you?
Would you like to see more reviews about this item?
Were these reviews helpful?   Let us know
Most Recent Customer Reviews
5.0 out of 5 stars Updated version of an excellent book
The first edition of this book was considered one of the best on the subject of Java and XML. This new edition has expanded to include the developments in Java and XML over the... Read more
Published on 27 Nov 2002 by Thomas Paul
5.0 out of 5 stars Updated version of an excellent book
The first edition of this book was considered one of the best on the subject of Java and XML. This new edition has expanded to include the developments in Java and XML over the... Read more
Published on 23 Nov 2002 by Thomas Paul
4.0 out of 5 stars Good overview but not a very good reference
I'm relatively new to Java and XML with programming experience with XML with perl. I found the book very insightful into all areas of XML using Java, except, and here's the... Read more
Published on 5 April 2002 by
5.0 out of 5 stars A book that truly demonstrates the beauty of Java
Noone can compete with O'Reilly when it comes to providing the technical information you need in a clear concise manner. This book is no exception. Read more
Published on 16 Feb 2002
5.0 out of 5 stars Excellent Introduction to writing Java XML applications
Enabled me to have a simple SOAP based web service up and running in hours. The introductory chapters on XML are better than many pure XML books. Read more
Published on 15 Jan 2002
5.0 out of 5 stars If you can only afford one book on Java and XML, buy this !
I am a relative newcomer to Java and XML, but within hours of reading this book I was able to write my own first (successful! Read more
Published on 14 Jan 2002
5.0 out of 5 stars broad horizon overview on xml and java related topics
It is the kind of book that anybody should have as a beginner in these topics. Even more, you'll start with the basics but you'll go farther and get the overall knowledge and... Read more
Published on 19 Nov 2001 by Agustí Rāfols (
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category