CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 03 Aug 2025 17:55:33 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090418173122
location: https://web.archive.org/web/20090418173122/https://oreilly.com/catalog/javaxml
server-timing: captures_list;dur=0.484046, exclusion.robots;dur=0.020843, exclusion.robots.policy;dur=0.010097, esindex;dur=0.010384, cdx.remote;dur=1111.789631, LoadShardBlock;dur=167.040182, PetaboxLoader3.datanode;dur=129.666269
x-app-server: wwwb-app203
x-ts: 302
x-tr: 1317
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app203; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 302
server: nginx
date: Sun, 03 Aug 2025 17:55:36 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20081220120958
location: https://web.archive.org/web/20081220120958/https://oreilly.com/catalog/javaxml/
server-timing: captures_list;dur=0.514284, exclusion.robots;dur=0.023384, exclusion.robots.policy;dur=0.011537, esindex;dur=0.010401, cdx.remote;dur=34.208300, LoadShardBlock;dur=230.375845, PetaboxLoader3.datanode;dur=340.845328, load_resource;dur=2095.883369, PetaboxLoader3.resolve;dur=1637.706473
x-app-server: wwwb-app203
x-ts: 302
x-tr: 2400
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 301
server: nginx
date: Sun, 03 Aug 2025 17:55:37 GMT
content-type: text/html; charset=iso-8859-1
content-length: 314
x-archive-orig-date: Sat, 20 Dec 2008 12:09:35 GMT
x-archive-orig-server: Apache
location: https://web.archive.org/web/20081220120958/https://www.oreilly.com/catalog/9780596000165/
x-archive-orig-content-length: 314
x-archive-orig-x-cache: MISS from olive.bp
x-archive-orig-x-cache-lookup: MISS from olive.bp:3128
x-archive-orig-via: 1.0 olive.bp:3128 (squid/2.6.STABLE13)
x-archive-orig-connection: close
cache-control: max-age=1800
memento-datetime: Sat, 20 Dec 2008 12:09:58 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Thu, 11 May 2000 22:11:50 GMT", ; rel="prev memento"; datetime="Thu, 18 Dec 2008 05:58:07 GMT", ; rel="memento"; datetime="Sat, 20 Dec 2008 12:09:58 GMT", ; rel="next memento"; datetime="Tue, 17 Feb 2009 03:49:10 GMT", ; rel="last memento"; datetime="Sat, 14 Sep 2024 21:32:53 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 50_7_20081220094252_crawl101-c/50_7_20081220120550_crawl100.arc.gz
server-timing: captures_list;dur=3.734151, exclusion.robots;dur=0.029983, exclusion.robots.policy;dur=0.013689, esindex;dur=0.014918, cdx.remote;dur=130.673992, LoadShardBlock;dur=66.097772, PetaboxLoader3.datanode;dur=63.770970, load_resource;dur=114.769010, PetaboxLoader3.resolve;dur=96.279858
x-app-server: wwwb-app203
x-ts: 301
x-tr: 352
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 302
server: nginx
date: Sun, 03 Aug 2025 17:55:37 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20081220120748
location: https://web.archive.org/web/20081220120748/https://www.oreilly.com/catalog/9780596000165/
server-timing: captures_list;dur=0.532469, exclusion.robots;dur=0.020383, exclusion.robots.policy;dur=0.009973, esindex;dur=0.010382, cdx.remote;dur=71.388496, LoadShardBlock;dur=234.987000, PetaboxLoader3.datanode;dur=145.460371
x-app-server: wwwb-app203
x-ts: 302
x-tr: 335
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 03 Aug 2025 17:55:38 GMT
content-type: text/html
x-archive-orig-date: Sat, 20 Dec 2008 12:07:24 GMT
x-archive-orig-server: Apache
x-archive-orig-p3p: policyref="https://www.oreillynet.com/w3c/p3p.xml",CP="CAO DSP COR CURa ADMa DEVa TAIa PSAa PSDa IVAa IVDa CONo OUR DELa PUBi OTRa IND PHY ONL UNI PUR COM NAV INT DEM CNT STA PRE"
x-archive-orig-last-modified: Thu, 18 Dec 2008 09:36:24 GMT
x-archive-orig-accept-ranges: bytes
x-archive-orig-content-length: 72028
x-archive-orig-x-cache: MISS from olive.bp
x-archive-orig-x-cache-lookup: MISS from olive.bp:3128
x-archive-orig-via: 1.0 olive.bp:3128 (squid/2.6.STABLE13)
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sat, 20 Dec 2008 12:07:48 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sat, 17 May 2008 14:45:35 GMT", ; rel="prev memento"; datetime="Thu, 18 Dec 2008 05:58:07 GMT", ; rel="memento"; datetime="Sat, 20 Dec 2008 12:07:48 GMT", ; rel="next memento"; datetime="Sun, 25 Jan 2009 04:30:09 GMT", ; rel="last memento"; datetime="Sat, 14 Sep 2024 21:32:55 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 50_7_20081220094252_crawl101-c/50_7_20081220120550_crawl100.arc.gz
server-timing: captures_list;dur=0.479683, exclusion.robots;dur=0.019688, exclusion.robots.policy;dur=0.009743, esindex;dur=0.009589, cdx.remote;dur=32.305451, LoadShardBlock;dur=160.323665, PetaboxLoader3.datanode;dur=107.783513, PetaboxLoader3.resolve;dur=135.791888, load_resource;dur=136.596093
x-app-server: wwwb-app203
x-ts: 200
x-tr: 417
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Java and XML | O'Reilly Media
Java and XML
Featured customer reviews
A Good Book, August 06 2006
Serves Begineers and Professionals.
Java and XML Review, June 19 2001
this guy is a good writer, knows the subject, and good communication skills. I am looking forward to his new book.
frank
Java and XML Review, May 09 2001
Dear Brent, this is a complete and cool book (and I've already solved some problems with JDOM)...However, regarding your style: who do you think you're writing this book for?
It seems you feel a little bit like a teacher that has to teach an un-interested mob. You justify talking about this and that, and tell me all the time,<blockquote> "poor boy, it's not that bad, maybe we can make it. but even if you don't like it, I'll have to talk about JAXP. however, first I tell you why you need to read about it. and then I tell you what's good about it. and then I'll tell you about XML-RPC, after I've told you why I must tell it to you........"
</blockquote>
This style irritates me.
If you write another book please keep this in mind: The reader wants to learn, you don't have to justify talking about JAXP and DOM and all the other things. And the reader is not dumb.
Move to a more straightforward style, away from that nice teacher style.
Yours,
Doc G
Java and XML Review, April 13 2001
God, I hated this book!
I have bought and read 5 or 6 O'Reilly books and have come to the conclusion that O'Reilly makes the absolute best non-fluff reference books out there. However, this book makes me wonder. The first 7 chapters are adequately done--then the writer ventures into what other messages describe as "his own pet API" JDOM. My question is "who cares"? I didn't buy this book for something I haven't heard of.
However, I was personally insulted by the STREAM of negative comments that the writer makes towards Microsoft and their products throughout the book. Like it or not, Microsoft is a major player in the world of computing and not every tech-head programmer (aka me) does not worship at the altar of UNIX and platform independence. I do not understand the strategy of a writer making comments like "forced to use Microsoft's parser" in the first chapter of the book and expecting any pro-Microsoft to continue reading. Since I spent $40, I did and had a very hard time finishing it.
John.
Java and XML Review, April 10 2001
Excellent book!
I started reading another XML book - Teach Yourself XML in 21 days which put me to sleep, TWICE. Then, after hearing Brett give a talk at a Java Users conference I decided to give this book a try and it was well worth it. I am now recommending this book to friends interested in learning more about Java and XML.
I like the approach of using the Apache (free) software versions of Xerces, Xalan and Cocoon. This allows you to follow along with the code, modify the examples and create your own.
The book gets you started on all of the current APIs: SAX, DOM, and JDOM with sample code that works. If you need an API reference manaul, this books isn't for you.
The author answered an outstanding question long before the Oreilly folks ever got back to me with a response that they couldn't answer my question and would forward the question to the author.
Java and XML Review, February 28 2001
I am sad to say that this is the first O'Reilly book I have come across where I have felt like asking for a refund afterwards.
My biggest objection has to be that the author pads out the middle of the book with his own pet API, JDOM. This is not an "official" API (i.e. no independent implementation), it's not widely used, and it hasn't even made it through peer review. Nevertheless, it takes up a full chapter of the book, and most of the examples following that point are written in... well, guess. Begins with a J.
Following this stance, the book's stance on SAX and DOM seems to be written in part as polemic against their use. After a while, I started grinding my teeth every time I read about the wonders of JDOM.
The book has a tendency to repeat itself at times and feels as though too little editing done. There are parts of the book which are not "about" XML at all, but are about programs which use XML. Apache Xerces and Xalan were welcome additions to the book, but did we really need to read about JSP vs XSP and Cocoon? They actually detract from the book by telling only half the story -- I noticed that although the book talks about XSL to a large extent, the book is not clear on the performance & memory hit of using XSL as opposed to a SAX-like API.
I was looking for a complete, clear reference of SAX and DOM in this book, with examples of how they were used in parsing and possibly an annotated guide to how the specs came together. I didn't get it.
Java and XML Review, February 16 2001
Excellent book in keeping with the O'Reilly tradition. The book has explained the concepts very well, especially if you are new to XML. It has a good connectivity of thoughts through the chapter. It is clear that the author has a very good grasp of what he is writing about, compared to some other. While I'd have enjoyed the marginal verbosity on a lazy Sunday afternoon, the schedule pressures faced by me made it a little less so.
Java and XML Review, February 01 2001
This is an excellent book on Java with XML. It doesn't not teach you everything about XML. One problem I have with the book is that the amount of errors, however, the author respond to my email very quick. One thing I don't like about it is that its flow is slow, very slow. I think I'm so used to the concept of "Pick up a OReilly book and become a good programmer in a week". The author really took his time to explain all the stuff.
Java and XML Review, December 20 2000
It's been a while since I read this book, but I saw this review forum and figured I should share my experience with this book. Overall I am usually impressed with O'Reilly books, but this one was distinctly poor. This book had numerous editing problems (seems like they rushed this one to press) and a weird continuity to it. It just didn't flow nicely at all. But I think my biggest complaint would be that I found way too much info on the simple things that I either already new, or had no trouble understanding (this book was excessively verbose IMHO) and not enough on the topics that are more advanced, and more useful for programers. I don't think we really needed to see a chapter on xml configuration files! One good thing is JDOM, but that doesn't make up for the book''s poor quality. I would have liked to have seen more on newer changing topics, despite the fact they are changing frequently, ones like XPath, XPointer, more on XSLT, and XML Schema. I could go on, but I won't =)
Java and XML Review, November 19 2000
Java and XML
Paperback, First printing, 465 pages
By Brett McLaughlin
Published by O'Reilly & Associates, Inc.
Copyright © June 2000
ISBN: 0-596-00016-2
Review written: November 19, 2000
By Donald W. Larson
Email: dwlarson@sd.znet.com
Web Site: https://www.sandiegodon.com/
Book reviews: https://sd.znet.com/~dwlarson/bookReviews.html
Java and XML are very important current pieces of technology. Individually, both subjects stand on their own and many books have been written on them. This is the first book I have read where both technologies are combined in a powerful and useful way.
I used the samples from the book on my Macintosh running MRJ 2.2.1 under MacOS 9.0.4. I used the XML Parser for Java and Xalan Processor where I could. The code samples for chapters 1 through 7 are available on my personal site https://sd.znet.com/~dwlarson/xml.html, however I was not able to run the samples after chapter 7 due to MacOS limitations or the inability to obtain the JDOM compiled binaries from O'Reilly.
Chapter 1 introduces, defines, and describes most of the common components of XML: DTD's (Document Type Definitions), XML Schema (Designed to replace and amplify DTD's), PI's (Programming Instructions), Namespaces (Mappings between element prefix and URI), XSL (Extensible Stylesheet Language), XSLT (Extensible Stylesheet Language Transformation), XPath (XML Path Language), XQL (Represent database queries), XSP (Extensible Server Pages).
Further along in Chapter 1, the two models primarily used: SAX (Simple API for XML) and DOM (Document Object Model) are introduced as well as some of the common uses of XML today including some discussion of XML Frameworks.
Chapter 2 uses a base example to explain the parts of an XML file: Header, XML Instructions, Document Type Declarations. It also explains the content in terms of namespaces, elements and attributes. Also what makes XML documents well-formed and valid. Enough detail is provided to understand those concepts. However, I also recommend the XML Pocket Reference (ISBN: I-56592-709-5) be read along in conjunction with this chapter to help solidify the foundation.
Chapter 3 uses the SAX approach and an XML Parser, and takes the reader through in great detail the parsing of the base document. Using the provided Java code, one learns to: instantiate the Reader objects to manage the base document, register the ContentHandler interface, a callback interface used by XML parsers to notify your program of SAX events as they are found in the XML document, use the Document Locator to find elements in the base document, and employ Error Handling techniques.
Chapter 4 continues with SAX and discusses constraining XML through the use of DTD's and Schemas. There are differences in both approaches and sufficient clarity is presented for the reader to see the advantages and disadvantages to both approaches.
Chapter 5 speaks to validation issues with a parser using SAX: turning on Validation, output of XML Validation, and describing the DTDHandler Interface.
Chapter 6 brings out the uses of transforming XML using Xalan and covering: XSL, Formatting Objects, XSL Transformations, XML Path Language (XPath), XSL Templates, Control Structures (Filtering Using XPath, Looping and Iteration, Choosing Elements), User XSL Elements and Attributes, and Copying Data.
Chapter 7 introduces the DOM approach to parsing XML and is the most widely used method for using XML and Java. The weakness of the SAX approach is discussed. I suggest that O'Reilly consider updating source code for this chapter in particular. The errata often does not show clearly where fixes to code need to take place. Complete source code updates should be made to the web site as fixes are made. The DOM explanations cover: DOM and Java, DOM Parsers and Outputs, Nodes and the DOM Tree, modifying a DOM Tree, and memory performance and Gotcha's.
Those first seven chapters form the foundation of the balance of the book's chapters and in their own light thoroughly explain Java and XML.
Chapter 8 expands on the use of O'Reilly's own JDOM library (which really should be distributed in binary format by O'Reilly) which simplifies using XML and Java.
Chapter 9 describes using an XML Frameworks package that runs on Unix and looks very powerful especially the section of Formatting Objects.
Chapter 10 mentions XML-RPC, an approach to send messages between applications instead of using Java's built-in RMI methods. XML-RPC is more lightweight and enables communication between non-Java applications thus overcoming one of the limitations of RMI.
Chapter 11 points out the uses of XML as configuration files, primarily on Unix computers using JDOM, SAX, and DOM.
The last three chapters cover the creation of XML using Java and then how this ties into Business-to-Business real-world applications. Chapter 14 discusses the future of XML Schema and what is to come.
Two Appendices are included to cover the API Reference and the new SAX 2.0 features.
Finally an index is provided to help locate those terms and topics quickly.
I learned a lot from this book and recommend people wanting to understand the two technologies consider purchasing a copy. As I indicated earlier, it would be helpful to readers if O'Reilly would keep the source code updated and provide compiled binaries of their JDOM code.
Rating: 9 out of 10
This rating is my own personal value system and as such is very subjective. I think a rating of 5 means I would read finish reading a book. A rating of 10 would indicate I had trouble putting a book down and have no complaints at all about it.
Java and XML Review, November 15 2000
This book achieves the goal of breaking through all the hype associated with
XML and shows what it really is. However, this book is nowhere close to
the standard of o'rielly books. Here are three reasons,
First of all, it is unnecessarily thick, which makes it more like one of the
'* in 21 days' books; the author repeats himself often.
Second, although the author shows that working with XML really means
reading or generating a tree, something that programmers have been doing
for the last thirty years, he is not willing to admit this directly,
and presents XML as some sort of unseen magic.
Finally, the book is written in a "packer" style, and not a "mapper" style
(were "packer" and "mapper" are as described in "The Programmer's Stone"
available on SlashDot).
Having said that, I have not heard of any other book that describes
practical usage of XML. Therefore, I still advise to read the book,
just to get started.
I wish that all o'rielly books were as good as 'Advanced Perl Programming'.
Java and XML Review, September 10 2000
This book is excellent. It is well written and organized and thoroughly thought out. It is one of the first books to appear on the xml scene. Usually that means incompleteness, but not in this case.
The author has laid the content out in an alternating java/xml fashion. After an introductory chapter, which describes the plethora of acronyms in xml, he spends several chapters alternating in xml/java. One chapter would describe an aspect of xml, and the next would tell you how to put it to use.
The second half of the book goes into putting this technology to use in practical situations and the details of java-specific xml technologies, such as jdom and cocoon.
This book is perfect for any one armed with a little knowledge of java and the question "What the heck is XML?".
Java and XML Review, September 05 2000
When I first looked at this book, it looked like good quality. However, now that I am actually going through it from cover to cover, I am disappointed by the disorganized writing style. Normally, O'Reilly books are very good quality, but this one is sub-standard. Maybe the author needed a better editor.
Perhaps some parts of the book are confusing because the technology is so new, and some of it hasn't been standardized yet.
I believe that the examples could be improved with line-by-line comments in some areas.
Java and XML Review, September 05 2000
I wish all books were as good as this one.
Rarely am I happy with books. What a satisfying feeling: not to have something to criticize. This way my energy is preserved and very useful void is formed. This void will ultimately generate some creative ideas which I will utilize.
Yes, I am being serious, in case you wonder.
Only one little note: JDOM 1.0 (production /or distribution?) has not materialized yet, even though it is claimed by the book. Nevertheless, JDOM in its current state is perfectly fine machine that works for me.
Man, I'm happy with the book.
Java and XML Review, August 25 2000
very useful for java programmers in xml-related projects.Explanation is clear and lucid.
Java and XML Review, August 21 2000
Finally! XML from a developer's standpoint! I've read several books on XML that have been mainly a regurgitation of the specifications without much attempt to help a developer understand how the technology can actually be used.
This is the first book I have read on this subject that actually bridges this gap and gives useful, working examples of how XML can be used in your Java applications to solvereal-world problems. Instead of giving a code snippet that shows only how to call the XML parsing/processing APIs, the book gives full examples on how to use XML in applications from servlets for presentation to B2B applications for data collaboration between companies.
The book was well written and easy to follow. The author doesn't waste time reiterating the same things over and over. Links for more information on each subject are given in the text.
If you are looking to implement an XML solution in Java, this book will be a great help along the way.
Java and XML Review, August 17 2000
Excellent book. The topic is covered logically with a clear focus on XML's relation to Java. The author's writing style is outstanding. He can really turn a phrase! And after 350 pages, no errors! That doesn't happen often.
Java and XML Review, July 27 2000
This is the most current book available on XML. Not only does it cover all the stuff I was looking for (including XML Schema), it covers the latest version of the specifications (many as late as April!). I found SAX 2.0 (the final release, even) and the latest XML Schema, both of which I am using at my company, and needed up-to-date support. The book is even more accurate than some of my favorite web page resources!It also covers JDOM, something the author wrote, which makes my life so much easier - I had to use DOM before, and JDOM is much simpler. It also compares JDOM and DOM in the code samples (side by side) so I got to see exactly where the differences were. Finally, a hidden gem - this book covered RSS! Something I hardly knew about, we are now doing our entire portal site in RSS thanks to "Java and XML". Pick it up - more in here than I even knew was useful, plus all the examples work (! ) and are not silly Hello World things.
Java and XML Review, July 09 2000
This is one of the best books I have read in the past three years.
I have learned a lot about XML and useful tools for manipulating it (not only java).
Maybe it would be a good idea to release one or two similar titles (e.g., perl and xml?).
The minor problem again: the cover looks like a sine curve.
Java and XML Review, June 30 2000
This is a great book! It thoroughly covers the basics of XML and makes it accessible to the common man through Java (ok, common programmer, my mom still won't be hacking XML any time soon). I've gained a huge amount of insight from this book and I'm lusting for a new project to try out what I've learned.
A minor gripe - the binding seems to be slowly detaching itself. The "packets" (I'm not sure of the correct term) of paper are separating and the covers are curling outwards. This hasn't happened with any of my other O'Reilly books. So far, that's the only thing I have to complain about, and I'm 3/4 of the way through.
Java and XML Review, June 07 2000
A must read book for web programmers. Book takes you through the applicability of xml in web development in nice way. Things have been presented in very simple words. Examples are very useful.
Media reviews "good, solid coverage of most of the important aspects of XML and Java. Keep this book on your desk if you are developing XML with Java, and you won't go far wrong. EXCELLENT 9 out of 10 horseshoes" --Frank Carver, JavaRanch.com, July 2001
"Java and XML are very important current pieces of technology. Individually, both subjects stand on their own and many books have been written on them. This is the first book I have read where both technologies are combined in a powerful and useful way. I learned a lot from this book and recommend people wanting to understand the two technologies consider purchasing a copy. Rating: 9 out of 10." --Donald W. Lawson, sd.znet.com, Nov 19, 2000
"This guide and tutorial for Java programmers is definitely recommended, but you should know Java well before you dive into Brett McLaughlin's exposition of DOM and JDOM, and SAX and XML transformations. A good part of this publication contains code--a lot of it--in hopes that you will walk through it, learn and understand, not just skim and forget. The code is also available for download." --RD, fatbrain.com Editors Review, June 21, 2000
Read all reviews
By Brett McLaughlin
June 2000
Pages: 495
ISBN 10: 0-596-00016-2 |
ISBN 13: 9780596000165
(Average of 21 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.
Java revolutionized the programming world by providing a platform-independent programming language. XML takes the revolution a step further with a platform-independent language for interchanging data. Java and XML shows how to put the two together, building real-world applications in which both the code and the data are truly portable.
Full Description
XML has been the biggest buzzword on the Internet community for the past year. But how do you cut through all the hype and actually put it to work? Java revolutionized the programming world by providing a platform-independent programming language. XML takes the revolution a step further with a platform-independent language for interchanging data. Java and XML share many features that are ideal for building web-based enterprise applications, such as platform-independence, extensibility, reusability, and global language (Unicode) support, and both are based on industry standards. Together Java and XML allow enterprises to simplify and lower costs of information sharing and data exchange. Java and XML shows how to put the two together, building real-world applications in which both the code and the data are truly portable.
This book covers:
- The basics of XML
- Using standard Java APIs to parse XML
- Designing new document types using DTDs and Schemas
- Writing programs that generate XML data
- Transforming XML into different forms using XSL transformations (XSL/T)
- XML-RPC
- Using a web publishing framework like Apache-Cocoon
Featured customer reviews
A Good Book, August 06 2006
Rating:




Submitted by
Parsi
[Respond | View]




Serves Begineers and Professionals.
Java and XML Review, June 19 2001
Rating:




Submitted by Frank Kalich
[Respond | View]




this guy is a good writer, knows the subject, and good communication skills. I am looking forward to his new book.
frank
Java and XML Review, May 09 2001
Rating:




Submitted by Dr. Gonzo
[Respond | View]




Dear Brent, this is a complete and cool book (and I've already solved some problems with JDOM)...However, regarding your style: who do you think you're writing this book for?
It seems you feel a little bit like a teacher that has to teach an un-interested mob. You justify talking about this and that, and tell me all the time,<blockquote> "poor boy, it's not that bad, maybe we can make it. but even if you don't like it, I'll have to talk about JAXP. however, first I tell you why you need to read about it. and then I tell you what's good about it. and then I'll tell you about XML-RPC, after I've told you why I must tell it to you........"
</blockquote>
This style irritates me.
If you write another book please keep this in mind: The reader wants to learn, you don't have to justify talking about JAXP and DOM and all the other things. And the reader is not dumb.
Move to a more straightforward style, away from that nice teacher style.
Yours,
Doc G
Java and XML Review, April 13 2001
Rating:




Submitted by John
[Respond | View]




God, I hated this book!
I have bought and read 5 or 6 O'Reilly books and have come to the conclusion that O'Reilly makes the absolute best non-fluff reference books out there. However, this book makes me wonder. The first 7 chapters are adequately done--then the writer ventures into what other messages describe as "his own pet API" JDOM. My question is "who cares"? I didn't buy this book for something I haven't heard of.
However, I was personally insulted by the STREAM of negative comments that the writer makes towards Microsoft and their products throughout the book. Like it or not, Microsoft is a major player in the world of computing and not every tech-head programmer (aka me) does not worship at the altar of UNIX and platform independence. I do not understand the strategy of a writer making comments like "forced to use Microsoft's parser" in the first chapter of the book and expecting any pro-Microsoft to continue reading. Since I spent $40, I did and had a very hard time finishing it.
John.
Java and XML Review, April 10 2001
Rating:




Submitted by Mike Miller
[Respond | View]




Excellent book!
I started reading another XML book - Teach Yourself XML in 21 days which put me to sleep, TWICE. Then, after hearing Brett give a talk at a Java Users conference I decided to give this book a try and it was well worth it. I am now recommending this book to friends interested in learning more about Java and XML.
I like the approach of using the Apache (free) software versions of Xerces, Xalan and Cocoon. This allows you to follow along with the code, modify the examples and create your own.
The book gets you started on all of the current APIs: SAX, DOM, and JDOM with sample code that works. If you need an API reference manaul, this books isn't for you.
The author answered an outstanding question long before the Oreilly folks ever got back to me with a response that they couldn't answer my question and would forward the question to the author.
Java and XML Review, February 28 2001
Rating:




Submitted by Will Sargent
[Respond | View]




I am sad to say that this is the first O'Reilly book I have come across where I have felt like asking for a refund afterwards.
My biggest objection has to be that the author pads out the middle of the book with his own pet API, JDOM. This is not an "official" API (i.e. no independent implementation), it's not widely used, and it hasn't even made it through peer review. Nevertheless, it takes up a full chapter of the book, and most of the examples following that point are written in... well, guess. Begins with a J.
Following this stance, the book's stance on SAX and DOM seems to be written in part as polemic against their use. After a while, I started grinding my teeth every time I read about the wonders of JDOM.
The book has a tendency to repeat itself at times and feels as though too little editing done. There are parts of the book which are not "about" XML at all, but are about programs which use XML. Apache Xerces and Xalan were welcome additions to the book, but did we really need to read about JSP vs XSP and Cocoon? They actually detract from the book by telling only half the story -- I noticed that although the book talks about XSL to a large extent, the book is not clear on the performance & memory hit of using XSL as opposed to a SAX-like API.
I was looking for a complete, clear reference of SAX and DOM in this book, with examples of how they were used in parsing and possibly an annotated guide to how the specs came together. I didn't get it.
Java and XML Review, February 16 2001
Rating:




Submitted by Anonymous
[Respond | View]




Excellent book in keeping with the O'Reilly tradition. The book has explained the concepts very well, especially if you are new to XML. It has a good connectivity of thoughts through the chapter. It is clear that the author has a very good grasp of what he is writing about, compared to some other. While I'd have enjoyed the marginal verbosity on a lazy Sunday afternoon, the schedule pressures faced by me made it a little less so.
Java and XML Review, February 01 2001
Rating:




Submitted by Adrian Yan
[Respond | View]




This is an excellent book on Java with XML. It doesn't not teach you everything about XML. One problem I have with the book is that the amount of errors, however, the author respond to my email very quick. One thing I don't like about it is that its flow is slow, very slow. I think I'm so used to the concept of "Pick up a OReilly book and become a good programmer in a week". The author really took his time to explain all the stuff.
Java and XML Review, December 20 2000
Rating:




Submitted by Dave
[Respond | View]




It's been a while since I read this book, but I saw this review forum and figured I should share my experience with this book. Overall I am usually impressed with O'Reilly books, but this one was distinctly poor. This book had numerous editing problems (seems like they rushed this one to press) and a weird continuity to it. It just didn't flow nicely at all. But I think my biggest complaint would be that I found way too much info on the simple things that I either already new, or had no trouble understanding (this book was excessively verbose IMHO) and not enough on the topics that are more advanced, and more useful for programers. I don't think we really needed to see a chapter on xml configuration files! One good thing is JDOM, but that doesn't make up for the book''s poor quality. I would have liked to have seen more on newer changing topics, despite the fact they are changing frequently, ones like XPath, XPointer, more on XSLT, and XML Schema. I could go on, but I won't =)
Java and XML Review, November 19 2000
Rating:




Submitted by Donald W. Larson
[Respond | View]




Java and XML
Paperback, First printing, 465 pages
By Brett McLaughlin
Published by O'Reilly & Associates, Inc.
Copyright © June 2000
ISBN: 0-596-00016-2
Review written: November 19, 2000
By Donald W. Larson
Email: dwlarson@sd.znet.com
Web Site: https://www.sandiegodon.com/
Book reviews: https://sd.znet.com/~dwlarson/bookReviews.html
Java and XML are very important current pieces of technology. Individually, both subjects stand on their own and many books have been written on them. This is the first book I have read where both technologies are combined in a powerful and useful way.
I used the samples from the book on my Macintosh running MRJ 2.2.1 under MacOS 9.0.4. I used the XML Parser for Java and Xalan Processor where I could. The code samples for chapters 1 through 7 are available on my personal site https://sd.znet.com/~dwlarson/xml.html, however I was not able to run the samples after chapter 7 due to MacOS limitations or the inability to obtain the JDOM compiled binaries from O'Reilly.
Chapter 1 introduces, defines, and describes most of the common components of XML: DTD's (Document Type Definitions), XML Schema (Designed to replace and amplify DTD's), PI's (Programming Instructions), Namespaces (Mappings between element prefix and URI), XSL (Extensible Stylesheet Language), XSLT (Extensible Stylesheet Language Transformation), XPath (XML Path Language), XQL (Represent database queries), XSP (Extensible Server Pages).
Further along in Chapter 1, the two models primarily used: SAX (Simple API for XML) and DOM (Document Object Model) are introduced as well as some of the common uses of XML today including some discussion of XML Frameworks.
Chapter 2 uses a base example to explain the parts of an XML file: Header, XML Instructions, Document Type Declarations. It also explains the content in terms of namespaces, elements and attributes. Also what makes XML documents well-formed and valid. Enough detail is provided to understand those concepts. However, I also recommend the XML Pocket Reference (ISBN: I-56592-709-5) be read along in conjunction with this chapter to help solidify the foundation.
Chapter 3 uses the SAX approach and an XML Parser, and takes the reader through in great detail the parsing of the base document. Using the provided Java code, one learns to: instantiate the Reader objects to manage the base document, register the ContentHandler interface, a callback interface used by XML parsers to notify your program of SAX events as they are found in the XML document, use the Document Locator to find elements in the base document, and employ Error Handling techniques.
Chapter 4 continues with SAX and discusses constraining XML through the use of DTD's and Schemas. There are differences in both approaches and sufficient clarity is presented for the reader to see the advantages and disadvantages to both approaches.
Chapter 5 speaks to validation issues with a parser using SAX: turning on Validation, output of XML Validation, and describing the DTDHandler Interface.
Chapter 6 brings out the uses of transforming XML using Xalan and covering: XSL, Formatting Objects, XSL Transformations, XML Path Language (XPath), XSL Templates, Control Structures (Filtering Using XPath, Looping and Iteration, Choosing Elements), User XSL Elements and Attributes, and Copying Data.
Chapter 7 introduces the DOM approach to parsing XML and is the most widely used method for using XML and Java. The weakness of the SAX approach is discussed. I suggest that O'Reilly consider updating source code for this chapter in particular. The errata often does not show clearly where fixes to code need to take place. Complete source code updates should be made to the web site as fixes are made. The DOM explanations cover: DOM and Java, DOM Parsers and Outputs, Nodes and the DOM Tree, modifying a DOM Tree, and memory performance and Gotcha's.
Those first seven chapters form the foundation of the balance of the book's chapters and in their own light thoroughly explain Java and XML.
Chapter 8 expands on the use of O'Reilly's own JDOM library (which really should be distributed in binary format by O'Reilly) which simplifies using XML and Java.
Chapter 9 describes using an XML Frameworks package that runs on Unix and looks very powerful especially the section of Formatting Objects.
Chapter 10 mentions XML-RPC, an approach to send messages between applications instead of using Java's built-in RMI methods. XML-RPC is more lightweight and enables communication between non-Java applications thus overcoming one of the limitations of RMI.
Chapter 11 points out the uses of XML as configuration files, primarily on Unix computers using JDOM, SAX, and DOM.
The last three chapters cover the creation of XML using Java and then how this ties into Business-to-Business real-world applications. Chapter 14 discusses the future of XML Schema and what is to come.
Two Appendices are included to cover the API Reference and the new SAX 2.0 features.
Finally an index is provided to help locate those terms and topics quickly.
I learned a lot from this book and recommend people wanting to understand the two technologies consider purchasing a copy. As I indicated earlier, it would be helpful to readers if O'Reilly would keep the source code updated and provide compiled binaries of their JDOM code.
Rating: 9 out of 10
This rating is my own personal value system and as such is very subjective. I think a rating of 5 means I would read finish reading a book. A rating of 10 would indicate I had trouble putting a book down and have no complaints at all about it.
Java and XML Review, November 15 2000
Rating:




Submitted by Boris Krivulin
[Respond | View]




This book achieves the goal of breaking through all the hype associated with
XML and shows what it really is. However, this book is nowhere close to
the standard of o'rielly books. Here are three reasons,
First of all, it is unnecessarily thick, which makes it more like one of the
'* in 21 days' books; the author repeats himself often.
Second, although the author shows that working with XML really means
reading or generating a tree, something that programmers have been doing
for the last thirty years, he is not willing to admit this directly,
and presents XML as some sort of unseen magic.
Finally, the book is written in a "packer" style, and not a "mapper" style
(were "packer" and "mapper" are as described in "The Programmer's Stone"
available on SlashDot).
Having said that, I have not heard of any other book that describes
practical usage of XML. Therefore, I still advise to read the book,
just to get started.
I wish that all o'rielly books were as good as 'Advanced Perl Programming'.
Java and XML Review, September 10 2000
Rating:




Submitted by Phillip S. Givens
[Respond | View]




This book is excellent. It is well written and organized and thoroughly thought out. It is one of the first books to appear on the xml scene. Usually that means incompleteness, but not in this case.
The author has laid the content out in an alternating java/xml fashion. After an introductory chapter, which describes the plethora of acronyms in xml, he spends several chapters alternating in xml/java. One chapter would describe an aspect of xml, and the next would tell you how to put it to use.
The second half of the book goes into putting this technology to use in practical situations and the details of java-specific xml technologies, such as jdom and cocoon.
This book is perfect for any one armed with a little knowledge of java and the question "What the heck is XML?".
Java and XML Review, September 05 2000
Rating:




Submitted by Jared Robinson
[Respond | View]




When I first looked at this book, it looked like good quality. However, now that I am actually going through it from cover to cover, I am disappointed by the disorganized writing style. Normally, O'Reilly books are very good quality, but this one is sub-standard. Maybe the author needed a better editor.
Perhaps some parts of the book are confusing because the technology is so new, and some of it hasn't been standardized yet.
I believe that the examples could be improved with line-by-line comments in some areas.
Java and XML Review, September 05 2000
Rating:




Submitted by Viktor Gritsenko
[Respond | View]




I wish all books were as good as this one.
Rarely am I happy with books. What a satisfying feeling: not to have something to criticize. This way my energy is preserved and very useful void is formed. This void will ultimately generate some creative ideas which I will utilize.
Yes, I am being serious, in case you wonder.
Only one little note: JDOM 1.0 (production /or distribution?) has not materialized yet, even though it is claimed by the book. Nevertheless, JDOM in its current state is perfectly fine machine that works for me.
Man, I'm happy with the book.
Java and XML Review, August 25 2000
Rating:




Submitted by vara
[Respond | View]




very useful for java programmers in xml-related projects.Explanation is clear and lucid.
Java and XML Review, August 21 2000
Rating:




Submitted by Dan Sackinger
[Respond | View]




Finally! XML from a developer's standpoint! I've read several books on XML that have been mainly a regurgitation of the specifications without much attempt to help a developer understand how the technology can actually be used.
This is the first book I have read on this subject that actually bridges this gap and gives useful, working examples of how XML can be used in your Java applications to solvereal-world problems. Instead of giving a code snippet that shows only how to call the XML parsing/processing APIs, the book gives full examples on how to use XML in applications from servlets for presentation to B2B applications for data collaboration between companies.
The book was well written and easy to follow. The author doesn't waste time reiterating the same things over and over. Links for more information on each subject are given in the text.
If you are looking to implement an XML solution in Java, this book will be a great help along the way.
Java and XML Review, August 17 2000
Rating:




Submitted by Joseph Dever
[Respond | View]




Excellent book. The topic is covered logically with a clear focus on XML's relation to Java. The author's writing style is outstanding. He can really turn a phrase! And after 350 pages, no errors! That doesn't happen often.
Java and XML Review, July 27 2000
Rating:




Submitted by Jon Baerd
[Respond | View]




This is the most current book available on XML. Not only does it cover all the stuff I was looking for (including XML Schema), it covers the latest version of the specifications (many as late as April!). I found SAX 2.0 (the final release, even) and the latest XML Schema, both of which I am using at my company, and needed up-to-date support. The book is even more accurate than some of my favorite web page resources!It also covers JDOM, something the author wrote, which makes my life so much easier - I had to use DOM before, and JDOM is much simpler. It also compares JDOM and DOM in the code samples (side by side) so I got to see exactly where the differences were. Finally, a hidden gem - this book covered RSS! Something I hardly knew about, we are now doing our entire portal site in RSS thanks to "Java and XML". Pick it up - more in here than I even knew was useful, plus all the examples work (! ) and are not silly Hello World things.
Java and XML Review, July 09 2000
Rating:




Submitted by Maik Schmidt
[Respond | View]




This is one of the best books I have read in the past three years.
I have learned a lot about XML and useful tools for manipulating it (not only java).
Maybe it would be a good idea to release one or two similar titles (e.g., perl and xml?).
The minor problem again: the cover looks like a sine curve.
Java and XML Review, June 30 2000
Rating:




Submitted by Eric Lind
[Respond | View]




This is a great book! It thoroughly covers the basics of XML and makes it accessible to the common man through Java (ok, common programmer, my mom still won't be hacking XML any time soon). I've gained a huge amount of insight from this book and I'm lusting for a new project to try out what I've learned.
A minor gripe - the binding seems to be slowly detaching itself. The "packets" (I'm not sure of the correct term) of paper are separating and the covers are curling outwards. This hasn't happened with any of my other O'Reilly books. So far, that's the only thing I have to complain about, and I'm 3/4 of the way through.
Java and XML Review, June 07 2000
Rating:




Submitted by Praveen Kumar
[Respond | View]




A must read book for web programmers. Book takes you through the applicability of xml in web development in nice way. Things have been presented in very simple words. Examples are very useful.
Media reviews "good, solid coverage of most of the important aspects of XML and Java. Keep this book on your desk if you are developing XML with Java, and you won't go far wrong. EXCELLENT 9 out of 10 horseshoes" --Frank Carver, JavaRanch.com, July 2001
"Java and XML are very important current pieces of technology. Individually, both subjects stand on their own and many books have been written on them. This is the first book I have read where both technologies are combined in a powerful and useful way. I learned a lot from this book and recommend people wanting to understand the two technologies consider purchasing a copy. Rating: 9 out of 10." --Donald W. Lawson, sd.znet.com, Nov 19, 2000
"This guide and tutorial for Java programmers is definitely recommended, but you should know Java well before you dive into Brett McLaughlin's exposition of DOM and JDOM, and SAX and XML transformations. A good part of this publication contains code--a lot of it--in hopes that you will walk through it, learn and understand, not just skim and forget. The code is also available for download." --RD, fatbrain.com Editors Review, June 21, 2000
Read all reviews
- Table of Contents
- Author's Article
- Author Interview
- Author's Website
- Examples
- Register Your Book
- View/Submit Errata
- View/Submit Review
Got a Question?
![]() © 2008, O'Reilly Media, Inc. (707) 827-7000 / (800) 998-9938 All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. |
About O'Reilly Privacy Policy Contacts Customer Service Authors Press Room Jobs User Groups Academic Solutions Newsletters Writing for O'Reilly RSS Feeds Terms of Service |
Other O'Reilly Sites O'Reilly Radar Ignite Tools of Change for Publishing Digital Media Inside iPhone O'Reilly FYI makezine.com craftzine.com hackszine.com perl.com xml.com |
Sponsored Sites Inside Aperture Inside Lightroom Inside Port 25 InsideRIA java.net |