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|

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.