On Thu, Nov 17, 2016 at 6:16 AM, Arun kant sharma <iarunkant / gmail.com> wrote:
> While I don't know your use case, it seems that you are trying to represent
> XML document in string. Why not use XML library instead

I agree. Having this in String instances seems backward. There are
already good tools around in Ruby to deal with XML, namely REXML and
Nokogiri.

Kind regards

robert

-- 
[guy, jim, charlie].each {|him| remember.him do |as, often| as.you_can
- without end}
http://blog.rubybestpractices.com/

Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>