Advertisement

JSDigester: Taking the Pain out of Client-Side XML

Chapter
  • 724 Downloads

Abstract

I’ll just come out and say it: parsing XML in a browser is not a particularly pleasant experience. Actually, if you think about it, parsing XML anywhere can be a bit of a hassle. However, one library that does make it a bearable experience is the Jakarta Commons Digester component (http://jakarta.apache.org/commons/digester). Digester allows you to specify a series of rules that will be triggered by various elements in an XML document. These rules may handle the parsing in a number of ways, including creating and populating objects from the XML. Wouldn’t it be great if we could do the same thing in JavaScript? Well, we’re going to make that dream a reality in this chapter, and in the process, make working with XML on the client a much less painful experience.

Keywords

Actor Object Rule Class Test Code Document Type Definition Shopping Cart 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Frank W. Zammetti 2007

Personalised recommendations