It was more of an exploratory, "is this possible?". Whether or not
it's a good idea is another question but neither REXML or Nokogiri do
what I want in this specific case. Thanks for the feedback/discussion
:)

On 18 November 2016 at 00:41, Robert Klemme <shortcutter / googlemail.com> wrote:
> 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>

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