Cant seem to find an answer to this on google:

If I have this value as the text within an attribute in my xml source:
"a2/PP00nFwWa7I8Jog7bcw==\n"

When I ask Nokogiri to return it, why does it return this:
"a2/PP00nFwWa7I8Jog7bcw== " (the last character I confirmed in the debugger
as a space character). So it seems Nokogiri is converting the "\n" to a
space.

Is there a way to tell Nokogiri to return verbatim? I am dealing with
encrypted data and this modification which it is making to the xml source is
significant?

I originally thought this might be a Ruby 1.9.2 issue but confirmed that
this is the same in 1.8.7. The difference is that REXML was returning this
string as expected and now am converting to Nokogiri.

Thanks,

David

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to