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.
Brett McLaughlin has been working in computers since the Logo days. (Remember the little triangle?) He currently specializes in building application infrastructure using Java and Java-related technologies. He has spent the last several years implementing these infrastructures at Nextel Communications and Allegiance Telecom, Inc. Brett is one of the co-founders of the Java Apache project Turbine, which builds a reusable component architecture for web application development using Java servlets. He is also a contributor of the EJBoss project, an open source EJB application server, and Cocoon, an open source XML web-publishing engine. He is author of the soon-to-be-released O'Reilly book, Building Java Enterprise Applications.
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animals on the cover of Java & XML, Second Edition are lions (Panthera leo). These great cats differ from other solitary felines in that they form family groups, called prides. Prides consist of as many as 30 to 40 lions, most of which are females and their offspring. The lifespan of a lion is approximately 3-4 years. Full grown males can grow up to 10 feet in length; the only cat larger is the tiger. The lion's eye is particularly sensitive to movement, and it can detect the movement of its prey from a great distance. Special receptor cells in the cat's eye give it exceptional night vision.Lions live in eastern and southern Africa, although some subspecies of the African lion are endangered. The Asiatic lion (P.l. persica) once lived throughout India, the Middle East, and Southern Asia. Today, its population has been reduced to approximately 290 animals, which can be found in the Gir Forest National Park in Gujarat, western India. The Barbary and Cape lions are extinct.Lions are carnivores and prey on large herd animals. They are at the top of the food chain, the apex predator of their environment. The females are the hunters, while the males' role is to protect the pride from other aggressive males. Lions are not as fast as other big cats, such as the cheetah. As a result, they concentrate on heavier, less agile animals, and hunt from ambush by driving prey toward concealed members of the hunting group. They use coordinated, cooperative techniques that enable the group to hunt with more success than an individual could. African lions eat wildebeest, zebra, antelope, gazelle, impala, and giraffe. Colleen Gorman was the production editor and copyeditor for Java & XML, Second Edition. Emily Quill was the proofreader, and Catherine Morris and Jane Ellin provided quality control. John Bickelhaupt wrote the index.Ellie Volckhausen designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from Grosvenor Prints in London. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.Melanie Wang designed the interior layout, based on a series design by Nancy Priest. The heading font is Bitstream Bodoni, the text font is ITC New Baskerville, and the code font is Constant Willison. Neil Walls and Anne-Marie Vaduva converted the files from Microsoft Word to FrameMaker 5.5.6 using tools created by Mike Sierra. The illustrations that appear in the book were produced by Jessamyn Read and Rob Romano using Macromedia FreeHand 9 and Adobe Photoshop 6.Whenever possible, our books use a durable and flexible lay-flat binding. If the page count exceeds the lay-flat binding limit, perfect binding is used.
By Antonio Rodriguez of the Columbia Java Users Group
Comments about oreilly Java and XML, 2nd Edition:
This book contains an enormous wealth of information about Java's tying with the essentials of XML. I'd still recommend obtaining another book exclusively on the intricacies of XML, since only the basics are covered in this book. XML contains a lot more than the few pages that this book talks of it.
But XML is nothing without the software that interprets, handles and otherwise processes the format, and this book details this tying in with the Java language very well. Java parsers, APIs (SAX, DOM and JDOM), web services, everything is covered.
One book that your Java programming bookcase should not be without!!
I agree with the excellence of this book. I haven't found such detailed description in WSDL and SOAP messages from other source. But I have a problem to running the SOAP messages example from Chapter 13. I use Tomcat 4.1.12 and SOAP 2.3.1, tried both JDK 1.3 and 1.4. The deployment seemed OK, but when I ran the Client, I got the following exception. From the discussion group of Apache SOAP, somebody suggested this might be a version incompatiblity of Xerces and Tomcat, but I tried to rename the xerces.jar to a_xerces.jar in %Tomcat_home%/common/lib directory to let it be loaded at the very beginning when Tomcat started (for JDK1.3) and put xerces.jar in %Tomcat_home%/common/endorsed and remove other parsers in this directory (for JDK 1.4, this is a new feature only in 1.4). But I kept getting this exception. I also tried other simple example from other resource and got the same response. So it seemed the problem was my environment, not the example. Does anybody know the solution? My OS is Windows XP Professional. Thanks a lot.
Exception while handling service request: javaxml2.OrderProcessor.purchaseOrder(org.apache.soap.Envelope,org.apache.soap.rpc.SOAPContext,org.apache.soap.rpc.SOAPContext) -- no signature match
java.lang.NoSuchMethodException: javaxml2.OrderProcessor.purchaseOrder(org.apache.soap.Envelope,org.apache.soap.rpc.SOAPContext,org.apache.soap.rpc.SOAPContext) -- no signature match
The book assumes a much higher level of proficiency than I expected. It really (especially)glossed what it takes to set up the run time web server environment (setting up Tomcat server, etc.) A page or two of step-by-step instructions on what the CLASSPATH needs to look like and the Apache directory structure should look like would have saved me countless hours and emails. I realize there are web sites out there on Tomcat and it really isn't the focus of the book but in order to run the examples one shouldn't assume a familiarity. Authors forget that many folks are learning this without the benefit of an expert nearby.
This is one of those "must have" books for any Java developer today. It's a career saver when you need a quick example and some clear guidance. The chapter on JDOM alone is worth the price of the book !
At last. All those pesky acronyms - SAX, JDOM, SAXP etc... - explained. In fact - better than explained, described with such clarity and with so many interesting examples that I was disappointed to finish the book. Nice one!!
This is an excellent book and exactly what I needed. I had been looking for a good book that actually tells you how to work with SOAP and give examples in Java and this is the best one I found!!! Good Job! :)
Excellent update to the 1st edition. Given the changing environment that the topic involves, the author covers the information in a clear and detailed manner. The examples were very handy in explaining how these different standards can be implemented using Java. Although it was covered, I would have liked to see more detail on HTTP handling servers for both SOAP and other XML format messages via servlets.
I just wanted to be the first one to respond. Even though I stll have yet to buy it, I scanned through a copy that a co-worker friend just bought over the weekend and I must say that from what I saw, I will definitly get it SOON!
This book looks like just what we as Java developers have been looking and hoping for quite a while.