Fernando Poblete wrote:
Hi. I'm working with XML and REXML and I could use some help in two particular issues: First, I want to display a REXML::Document object.
Last time I checked, Ruby had incomplete native XSLT support. You need to get either msxsl.exe by Microsoft or xsltproc by everyone else. Then pipe your XML thru an XSLT template to re-render everything in XHTML.
Below my sig is a snip of code that detects which one you have and calls it correctly.
To diff XML, you could google for "diff XML", "XMLunit", or "XSLTunit". I have not tried either, but as diffing content is a major aspect of testing, the XSLTunit ought to show how to do it.