[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: DOM's javascript roots (was Re: Have JDOM/ XOM /


ruby dom
Charles Woerner wrote:
...

> 
> Standardizing an API such as DOM across different languages is a nice
> goal.  When I see a few lines of XML traversing code written in Ruby
> using DOM I immediately know what it's doing despite the fact that I've
> never coded a line of Ruby in my life.  

But XML manipulation in Ruby will more than likely be done using REXML, 
Ruby's bundled XML parser.  It has a Ruby-centric API.

When the idea of having Ruby support XML "out of the box" first came up 
a few years ago, the discussion centered on two views: Should Ruby 
support the W3C DOM, requiring Rubyists to use a decidedly non-Ruby API 
for XML tasks, or should a bundled parser have an API that would be 
intuitive to reasonably experienced Ruby hacker?

The latter point of view won, and Ruby ships with REXML.

One *can* use libxml2 with Ruby, but I suspect this is selected over 
REXML only when speed or memory are issues.  For most day-to-day XML 
handling, I think people are choosing the API that best meshes with the 
language.


James Britt

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.