O'Reilly logo

Enterprise Curl by Paul Sheehan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

StockByMakeHandler

As we saw earlier in this book, before we learn how to implement the specific XML parsing methods in the StockByMakeHandler class, we need to understand the format of the XML message it supports. In the VMS Motors application, the stock-by-make-pie.xml process returns the XML document shown in Figure 16-11.

The StockByMakeHandler class, which is used by the SAX parser to process the XML message shown in Figure 16-11, is described in the following sections.

constructor

The constructor for StockByMakeHandler instantiates the class with the correct number of columns for the table it creates. Figure 16-12 shows the code required.

The {constructor} method uses the construct-super primitive to pass the columns argument to the ancestor ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required