Created
July 10, 2015 13:11
-
-
Save anonymous/02fbd1c79ac8476a4337 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rexml/document" | |
source = "<xml><foo><bar></bar></foo></xml>" | |
my_xml = REXML::Document.new source | |
out = "" | |
my_xml.write(out, 4) | |
puts out | |
# i want to do exactly the oposite of this. I have a string looking like #{out} and want to get back to the "original" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment