Chapter 5. Taking Orders: Manipulating Data with JDOM

In this chapter

  • What Is JDOM?

  • Installing JDOM

  • Developing an Algorithm

  • Creating the Shopping Cart—AddToOrder.java

  • Manipulating an XSL Style Sheet

  • Next Steps

In the last chapter, we talked briefly about Application Programming Interfaces (APIs). Simply put, an API is a set of commands that a program understands. If you try speaking English to someone who understands only French, you're not going to get anywhere. Similarly, if you try to use commands that are outside a program's API, you're not going to accomplish anything.

In the XML world, a number of APIs are vying for attention, all of which are in various stages of acceptance and best suited for different purposes.

The first XML-related API was ...

Get XML and Java™ from scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.