Overview
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.
Editorials
From Barnes & Noble
The Barnes & Noble ReviewJava: portable code. XML: portable data. The two should go together like peas in a pod. But, as Java developers have discovered, it's not always as easy as advertised. There are solutions, however, and you'll find them in Java and XML, the industry's most systematic guide to integrating these two vital technologies.
Brett McLaughlin starts with a detailed grounding in XML for Java developers, followed by in-depth coverage of the two most widely-used Java tools for handling XML data: the Simple API for XML, and the Document Object Model (DOM). As McLaughlin has pointed out elsewhere, neither of these tools are perfect: SAX is fast but unfamiliar, and doesn't allow changes to underlying XML data. DOM is powerful but requires a far deeper understanding of XML. Still, if you use them judiciously, you can accomplish quite a bit — and McLaughlin shows you how, identifying challenges and pitfalls, and presenting realistic solutions.
Next, McLaughlin introduces the Java APIs for XML, which offers Java developers what they really want: a way to obtain a DOM document or SAX-compliant parser through a simple factory class, without worrying about the complexities of varying parser implementations. There's also an authoritative look at the new JDOM 1.0 spec — which McLaughlin co-wrote. JDOM is shaping up as a breakthrough: it enables Java developers to manipulate XML using familiar techniques and usage patterns, without worrying about strict tree models.
In the second half of the book, McLaughlin lays out specific solutions to the issues Java andXMLdevelopers face most often: using XML with remote procedure calls; storing configuration data inXML formats; XML-based B2B communication; and more. From start to finish, Java and XML is thorough, carefully written, replete with code, and extremely realistic.
—Bill Camarda, bn.com editor
Booknews
"A guide for Java programmers, showing how to build real-world applications with XML featuring portable code and data. Early chapters focus on getting grounded in XML and core Java APIs for handling XML, and include coverage of the latest API, JDOM 1.0. Later chapters focus on specific XML topics such as Web publishing frameworks, XML for configurations, and XML schema. Includes a case study of creating inter- and intra-business communication channels using XML as a portable data format. The author specializes in building application infrastructure using Java."--Annotation c. Book News, Inc., Portland, OR (booknews.com)