Join Books.org — it's free

Book cover of Processing XML with Java: A Guide to SAX, DOM, JDOM, JAXP, and TrAX
Network Programming, XML, SGML, & Other Document Mark-up Languages, Java (Programming Language), Web Programming

Processing XML with Java: A Guide to SAX, DOM, JDOM, JAXP, and TrAX

by Elliotte Rusty Harold
Available on Bookshop Write a review

Books.org participates in affiliate programs including Bookshop.org and the Amazon Services LLC Associates Program. We may earn a commission from qualifying purchases made through links on this page, at no additional cost to you.

Log in to track your reading progress.

Overview

Praise for Elliotte Rusty Harold’s Processing XML with Java

“The sophistication and language are very appropriate for Java and XML application developers. You can tell by the way the author writes that he too is a developer. He delves very deeply into the topics and has really taken things apart and investigated how they work. I especially like his coverage of ‘gotchas,’ pitfalls, and limitations of the technologies.”

        —John Wegis, Web Engineer, Sun Microsystems, Inc.

“Elliotte has written an excellent book on XML that covers a lot of ground and introduces current and emerging technologies. He helps the novice programmer understand the concepts and principles of XML and related technologies, while covering the material at a level that’s deep enough for the advanced developer. With a broad coverage of XML technologies, lots of little hints, and information I haven’t seen in any other book on the topic, this work has become a valuable addition to my technical library.”

        —Robert W. Husted, Member, Technical Staff, Requisite Technology, Inc.

“The code examples are well structured and easy to follow. They provide real value for someone writing industrial-strength Java and XML applications. The time saved will repay the cost of this book a hundred times over.

“The book also contains more of the pearls of wisdom we’ve come to expect from Elliotte Rusty Harold—the kind of pointers that will save developers weeks, if not months, of time.”

        —Ron Weber, Independent Software Consultant

Written for Java programmers who want to integrate XML into their systems, this practical, comprehensive guide and reference shows how to process XML documents with the Java programming language. It leads experienced Java developers beyond the basics of XML, allowing them to design sophisticated XML applications and parse complicated documents.

Processing XML with Java™ provides a brief review of XML fundamentals, including XML syntax; DTDs, schemas, and validity; stylesheets; and the XML protocols XML-RPC, SOAP, and RSS. The core of the book comprises in-depth discussions on the key XML APIs Java programmers must use to create and manipulate XML files with Java. These include the Simple API for XML (SAX), the Document Object Model (DOM), and JDOM (a Java native API). In addition, the book covers many useful supplements to these core APIs, including XPath, XSLT, TrAX, and JAXP.

Practical in focus, Processing XML with Java™ is filled with over two hundred examples that demonstrate how to accomplish various important tasks related to file formats, data exchange, document transformation, and database integration. You will learn how to read and write XML documents with Java code, convert legacy flat files into XML documents, communicate with network servers that send and receive XML data, and much more. Readers will find detailed coverage of the following:

  • How to choose the right API for the job
  • Reading documents with SAX
  • SAX filters
  • Validation in several schema languages
  • DOM implementations for Java
  • The DOM Traversal Module
  • Output from DOM
  • Reading and writing XML documents with JDOM
  • Searching XML documents with XPath
  • Combining XSLT transforms with Java code
  • TrAX, the Transformations API for XML
  • JAXP, the Java API for XML Processing

In addition, the book includes a convenient quick reference that summarizes the major elements of all the XML APIs discussed. A related Web site, located at http://www.cafeconleche.org/books/xmljava/, contains the entire book in electronic format, as well as updates and links referenced in the book.

With thorough coverage of the key XML APIs and a practical, task-oriented approach, Processing XML with Java™ is a valuable resource for all Java programmers who need to work with XML.

Synopsis

Explains how to process XML with Java, build XML applications, and parse complicated documents. Written for experienced Java developers, the book focuses on the three major Java APIs that model XML: the simple API for XML (SAX), the document object model (DOM), and a Java native API (JDOM). The final two chapters introduce the XPath language for locating nodes in XML documents, and XSL transformations (XSLT) for describing how documents change formats. Annotation c. Book News, Inc., Portland, OR

About the Author, Elliotte Rusty Harold

Elliotte Rusty Harold is an internationally respected writer, programmer, and educator. He is an Adjunct Professor of Computer Science at Polytechnic University in Brooklyn, where he lectures on Java and object-oriented programming. His Cafe con Leche Web site has become one of the most popular sites for information on

The

(John Wiley & Sons, 2001) and

(O'Reilly, 2002).

Reviews

There are no reviews yet. Log in to write one.

Editorials

From Barnes & Noble

The Barnes & Noble Review
Experienced Java programmers have plenty of XML tools to choose from: More open source XML tools have been written in Java than in any other language. But many of these tools are far less flexible than XML itself, because, in Elliotte Rusty Harold’s words, they treat XML as “just a funny kind of database, or just like an object, or just like remote procedure calls.” To gain true mastery, says Harold, accept XML on its own terms, “in all its messiness: valid and invalid, mixed and unmixed, typed and untyped, and both all and none of these at the same time.” Harold’s Processing XML with Java will help you cope with whatever XML challenges come your way.

This book delivers all the clarity and readability we’ve come to expect from Harold. Using extensive examples, he shows how to use XML as a data format; write and read XML; and convert flat files to XML. Next, he moves on to three XML APIs every Java developer should understand: SAX, with its XMLReader interface and filters; DOM; and finally, the cleaner, more modern JDOM. Harold concludes with useful introductions to XPath, XSLT, and the new Transformations API for XML. Highly recommended. Bill Camarda

Bill Camarda is a consultant, writer, and web/multimedia content developer. His 15 books include Special Edition Using Word 2000 and Upgrading & Fixing Networks For Dummies®, Second Edition.

Book Details

Published
November 1, 2002
Publisher
Addison-Wesley
Pages
1071
Format
Paperback
ISBN
9780201771862

More by Elliotte Rusty Harold

Similar books