From Ruby Developer's Guide

Introduction

Since its inception, Extensible Markup Language (XML) has been turning heads in the programming and development world. It used to be that creating a database required pre-made and sometimes costly tools, such as MySQL or Microsoft Access; but the advent of XML, with its open architecture and extremely supple simplicity, has completely changed that.

If you know what you are doing, you can have Ruby take advantage of its own architecture and apply it to XML fairly simply. If you are new to Ruby, you can always spend time by yourself, learn Ruby, and create a parser by yourself. However, XML has simple needs; all it requires from a parser is that it reads and formats the file nothing more.

Instead of working with our own parser, let's take a look at some of the more popular parsing options available for Ruby and XML. Remember, all we are doing here is looking at and understanding XML parsers which you can always use to develop a more robust engine, if that's what you need.

Note

This chapter examines XML with Ruby, not how XML works. If you need a good reference for XML, pick up Syngress Publishing's XML.NET Developer's Guide (ISBN 1-928994-47-4).

Why XML?

XML is the frequent subject of both marketing hyperbole and heated predictions of its imminent decline, but at heart it's a very straightforward and useful technology: Plain text files are combined with a simple but powerful markup scheme. Much of XML's appeal to programmers lies...

Copyright Syngress Publishing, Inc. 2002 under license agreement with Books24x7

Products & Services
Data Warehousing Software
Data warehousing software is used to design, build, manage, implement, and improve data warehouses, repositories of electronically-stored data.
Advertising and Marketing Services
Advertising and marketing services evaluate client requirements, develop promotional strategies, implement plans for product branding, and manage advertising campaigns.
Technical Book Publishers
Technical book publishers provide full-length manuals, textbooks, schematics, scientific reports, industry standards, and instructional publications.
Phone Switchboards
Phone switchboards are used for routing telephone calls and adding advanced features to telephone systems.

Topics of Interest

Introduction In this chapter we'll introduce you into three libraries, XML-RPC for Ruby (xmlrpc4r), Simple Object Access Protocol for Ruby (SOAP4R) and Distributed Ruby (DRb). The first two are...

Introduction The Extensible Markup Language (XML) is the latest offering in the world of data access. Microsoft has been actively supporting this language since its conception. XML provides a...

Introduction The Extensible Markup Language (XML) is the latest offering in the world of data access. Microsoft has been actively supporting this language since its conception. XML provides a...

Bridging the Gap: Medical Device Communication with XML XML has the potential to make widespread improvements in data management for the medical device and healthcare industries. The only problem is,...

Introduction Extensible Markup Language, or XML, has met with immense popularity with the continually increasing need for dispersed systems to communicate in a growingly connected environment.