# ruby/SVG dom mod and display

**URL:** <https://www.ruby-forum.com/t/ruby-svg-dom-mod-and-display/189004>\
**Category:** Ruby\
**Created:** [May 21, 2010, 6:59pm UTC](https://www.ruby-forum.com/t/ruby-svg-dom-mod-and-display/189004 "2010-05-21T18:59:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yottameter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/df705f/32.png) [@yottameter](https://www.ruby-forum.com/u/yottameter)\
**Post date:** [May 21, 2010, 6:59pm UTC](https://www.ruby-forum.com/t/ruby-svg-dom-mod-and-display/189004/1 "2010-05-21T18:59:50Z")

</div>

There seem to be a lot of SVG solutions for Ruby, SRVG, RVG, rcairo,  
etc.

What I’m looking to do is to read in an SVG file, display it, modify it  
via the DOM, and re-render.

With regards to modifying the DOM - am I better off just using REXML?  
Basically given an id, I’d just like to change colors of elements.

If anyone has an opinion about which library I should use, it would be  
much appreciated…

---

<div class="post-metadata">

**Author:** ![yottameter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/df705f/32.png) [@yottameter](https://www.ruby-forum.com/u/yottameter)\
**Post date:** [May 22, 2010, 12:51pm UTC](https://www.ruby-forum.com/t/ruby-svg-dom-mod-and-display/189004/2 "2010-05-22T12:51:20Z")

</div>

On Fri, May 21, 2010 at 6:59 PM, Yotta M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> With regards to modifying the DOM - am I better off just using REXML?  
> Basically given an id, I’d just like to change colors of elements.  
> If you have a running REXML solution why not? But please bear in mind  
> that nowadays libraries like Nokogiri are considered a better tool by  
> many, including YHS.

HTH  
R.
