Actually, it is more involved than that.

I have a XML template with the following:

<root_elem>
  <first_elem>
    ...contents of first_elem....
  </first_elem>
</root_elem>

I then read in this XML and dynamically add in second_elem and 
third_elem as siblings to first_elem.  Using the default formatter 
prints them all inline.  Using the pretty printer prints each element 
tag (both open and close) and the value on a separate line.

I want something in between these two extremes.

I want to print out the contents of <second_elem> and <third_elem> like 
so:

   <internal_elem>value</internal_elem>

Does anyone know how to create a custom formatter for correctly provide 
formatting directives to REXML?

Thanks,
Wes
-- 
Posted via http://www.ruby-forum.com/.