Skip to Main Content
Java Enterprise Best Practices
book

Java Enterprise Best Practices

by O'Reilly Java Authors
December 2002
Intermediate to advanced content levelIntermediate to advanced
288 pages
9h 46m
English
O'Reilly Media, Inc.
Content preview from Java Enterprise Best Practices

Chapter 5. XML Best Practices

Brett McLaughlin

It’s almost impossible for programmers not to use XML in modern enterprise applications. In fact, programmers are finding it increasingly common to read and write XML, either from other components within the same application or from external sources such as a web service.

In this chapter we’ll discuss several types of XML-based best practices. First, we’ll discuss several ways you can better structure your XML, regardless of the API you choose to use. From there, we’ll look at tips for using three significantly different XML APIs included with a Java 2 Enterprise Edition (J2EE) distribution. We’ll also discuss how, in addition to good document authoring, it is important that your XML manipulation code be efficient and well-designed. This chapter examines several best practices that will get you on the right track to effective Java and XML programming, and keep you sleeping at night.[7]

[7] Some of the concepts throughout this chapter are based on tips I wrote that were originally published online at the IBM DeveloperWorks site (http://www.ibm.com/developer). My thanks to IBM for allowing their modification and reuse.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Moving to Java 9: Better Design and Simpler Code

Moving to Java 9: Better Design and Simpler Code

Trisha Gee
Java EE 8 High Performance

Java EE 8 High Performance

Romain Manni-Bucau

Publisher Resources

ISBN: 0596003846Supplemental ContentErrata Page