Chapter 9. Processing XML

Among the topics that a programmer will almost certainly encounter, XML is near the top of the list. AJAX has been a key player in bringing awareness of XML (Extensible Markup Language) to the web development industry. With the rabid popularity of Ruby on Rails, web developers increasing need Ruby’s support of XML to drive their AJAX user interfaces. In this chapter I’ll look at the ways you can use some standard libraries to manipulate XML data.

For this section, I rely on REXML, which is currently the most popular XML library for Ruby. However, at the time of this writing, bindings to libxml2 called libxml-ruby are under development. By the time you read this, you may find that those bindings are mature enough for production ...

Get Ruby Phrasebook 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.