By Brett McLaughlin
Second Edition August 2001
Pages: 528 (More details)
![]()
![]()
![]()
![]()
(Average of 11 Customer Reviews)
This book has been updated—the edition you're requesting is OUT OF PRINT. Please visit the catalog page of the latest edition.
The latest edition is also available on Safari Books Online.
New chapters on Advanced SAX, Advanced DOM, SOAP, and data binding, as well as new examples throughout, bring the second edition of Java & XML thoroughly up to date. Except for a concise introduction to XML basics, the book focuses entirely on using XML from Java applications. It's a worthy companion for Java developers working with XML or involved in messaging, web services, or the new peer-to-peer movement.
Full Description
- 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
Register your book | View/Submit Errata | View/Submit Review | Author's Articles | Author Interview | Author's Tips | Examples
Browse within this book
Cover | Table of Contents | Index | Sample Chapter | Colophon
No time right now?
|
Read more |
Read more |
Read more |
No time right now?
Article:Making the Most of JDBC with WebRowSet Read more | Course:Learn Object-Oriented Programming Using Java Learn Object-Oriented Programming concepts through Java applets in this beginner course. Read more | Certificate:Open Source Programming Certificate Earn a University Certificate as you gain real-world experience in several LAMP and other open-source technologies. Read more |
Java in a Nutshell Read more | XML in a Nutshell Read more | Java Examples in a Nutshell Read more |
Book details
Title:
Java and XML
Subtitle: Solutions to Real-World Problems
Second Edition: August 2001
ISBN 10: 0-596-00197-5
ISBN 13: 9780596001971
Pages: 528
Average Customer Reviews: ![]()
![]()
![]()
![]()
(Based on 11 Reviews)
Featured customer reviews
Java & XML, 2nd Edition Review
2005-11-24 02:31:45
Anonymous Reader
[Reply | View]
Hi, Robert,
I has the same condition as you,
but I don't think it caused by version incompatiblity of Xerces and Tomcat,
the stackTrace say: "java.lang.NoSuchMethodException.."
but it's strange, the method just there!
---
My environment is:
win2003, j2sdk 1.4.2, soap 2.3.1, Xerces 1.2.3,
Tomcat 5.0
I has tried Xerces 2.6.2, it just version incompatible.
Java & XML 2nd edition
Rating:
![]()
![]()
![]()
![]()
2005-08-28 14:38:27
Bob H.
[Reply | View]
This book is dated, bad. It has a copyright of August, 2001. Much of the book references SAX 1.0, a dinosaur. Evidently, there has been a reprint in 2004 with a load of corrected mistakes. Unfortunately, the old books are still in the pipeline, because my purchase in August 2005 yielded the August 2001 version.
When compiling a crucial example in Chapter 3, a couple of screwy warnings occurred with the JFrame class. There is nothing in the errata referencing this problem. If you don't have a background with JFrame and Java Swing, you will not be able to shoot this bug. It is a shame that so many bugs get out in O'Reilly books, but that is what happens.
I have shot some in the past, but did not receive any acknowledgement from the O'Reilly crowd.
Java & XML, 2nd Edition Review
Rating:
![]()
![]()
![]()
![]()
2003-04-29 14:09:54
Antonio Rodriguez of the Columbia Java Users Group
[Reply | View]
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!!
Java & XML, 2nd Edition Review
Rating:
![]()
![]()
![]()
![]()
2002-11-11 08:08:54
Robert
[Reply | View]
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.
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>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</faultstring>
<faultactor>/soap/servlet/messagerouter</faultactor>
<detail>
<stackTrace>java.lang.NoSuchMethodException: javaxml2.OrderProcessor.purchaseOrder(org.apache.soap.Envelope,org.apache.soap.rpc.SOAPContext,org.apache.soap.rpc.SOAPContext) -- no signature match
at org.apache.soap.util.MethodUtils.getEntryPoint(MethodUtils.java:194)
at org.apache.soap.util.MethodUtils.getMethod(MethodUtils.java:548)
at org.apache.soap.util.MethodUtils.getMethod(MethodUtils.java:528)
at org.apache.soap.server.MessageRouter.invoke(MessageRouter.java:54)
at org.apache.soap.providers.MsgJavaProvider.invoke(MsgJavaProvider.java:125)
at org.apache.soap.server.http.MessageRouterServlet.doPost(MessageRouterServlet.java:308)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)
</stackTrace>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Java & XML, 2nd Edition Review
Rating:
![]()
![]()
![]()
![]()
2002-06-15 15:37:35
Arthur Casale
[Reply | View]
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.
Java & XML, 2nd Edition Review
Rating:
![]()
![]()
![]()
![]()
2002-05-08 09:54:27
Greggbert
[Reply | View]
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 !
Java & XML, 2nd Edition Review
Rating:
![]()
![]()
![]()
![]()
2002-02-19 18:43:18
Shailesh Deshpande
[Reply | View]
The perfect "hands on" book for Java Programmers wanting to play with XML.
Java & XML, 2nd Edition Review
Rating:
![]()
![]()
![]()
![]()
2001-11-27 01:54:03
Neil Laurance
[Reply | View]
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!!
Java & XML, 2nd Edition Review
Rating:
![]()
![]()
![]()
![]()
2001-09-27 11:20:03
Zohra Hemani
[Reply | View]
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! :)
Java & XML, 2nd Edition Review
Rating:
![]()
![]()
![]()
![]()
2001-09-24 13:52:30
Ben Bruhl
[Reply | View]
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.
Great addition to my library!
Java & XML, 2nd Edition Review
Rating:
![]()
![]()
![]()
![]()
2001-09-11 12:20:52
Bill Woods
[Reply | View]
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.
Good work!
- Bill
Media reviews
"Excellent book for Java programmers who need to understand how to handle XML."
--Ken North, Dr Dobbs
"Was I impressed with this book? Indeed I was! The content is both timely and accurate, the reading is easy and enjoyable--a very rare achievement."
--Java Desk, Israel, Nov 2001
"In short, if you are a Java programmer that needs to know how to implement XML in Java, then you should have this book."
--vulinhnguyen, Java and Web developer, Enterprise Java Books List, amazon.com



