From: Phlip Date: 2008-01-17T10:27:01+09:00 Subject: Re: REXML::Element.write is deprecated. See REXML::Formatters > I guess I'll let Sean take it from here, other than to note that .to_s > on an element still works... I understand you only mean that's a workaround - it is indeed already deployed. But the complete rationale is useful here. The goal of indent_xml() is to pretty-print tested XHTML so we can rapidly read it. It could have come from a human (icky formatting), or from some HTML generator (even ickier formatting!). And because HTML is not space-sensitive, the best solution is to format it as beautifully as possible, to help you see its structure and attributes. assert_xpath needs all this in its diagnostics, so you can rapidly see why an XPath was not found. -- Phlip