Xml reading through REXML and writing to plain text file

Hi All,

I am parsing a file using REXML and want to write some information from
it alongwith xml tags in a plain text file -

File.open(“abcd.txt”, “w”) do |f|
f.write(…)
done

while trying to write xml elements with namespace etc using f.write() it
is complaining about prefix not able to resolve, two root elements can
not be part of it etc.

Can you tell me , do i need to prefix this File with a specific library
name to avoid treating it as xml file.

Thanks

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs