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
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.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2007 Frank W. Zammetti
About this chapter
Cite this chapter
(2007). JSDigester: Taking the Pain out of Client-Side XML. In: Practical JavaScript™, DOM Scripting, and Ajax Projects. Apress. https://doi.org/10.1007/978-1-4302-0197-7_7
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0197-7_7
Publisher Name: Apress
Print ISBN: 978-1-59059-816-0
Online ISBN: 978-1-4302-0197-7
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books
