Topic: Extracting XML from inside a tag using REXML

I am trying to get all of the XML (XHTML specifically) from inside a "content" tag in an Atom 1.0 feed. You can access one of the "content" tags using XPath like this:

document.elements["//entry/content"]

What's the easiest route to grabbing everything inside its tag.  Do I need to iterate over all of the elements within the tag and append them to a string, or is there a short cut of some kind?

Re: Extracting XML from inside a tag using REXML

Answering my own question, turns out there's a method on the Element class in REXML called "write" that does exactly what I wanted.