The problem is the two different encoding formats…
I first used REXML, but the .elements[…] method returns nil
Would someone have a solution to get the XML tags and the information it
Since you’re embedding XML in XML you need to parse twice. Btw. it
doesn’t really make much sense to have a different encoding in the
nested XML because from XML’s point of view the whole document is
encoded with UTF-8 and hence also the inner text needs to use that
encoding. If you want to use a different encoding you’ll have to
encode the inner text yourself, probably as binary (e.g. BASE64).
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.