From: Sam Roberts Date: 2004-03-18T10:23:47+09:00 Subject: Re: XML Unit? Quoteing phlip_cpp@yahoo.com, on Thu, Mar 18, 2004 at 08:34:36AM +0900: > Aidan Rogers wrote: > > > Is there a ruby equivalent of Java's XML Unit, whereby you can compare two > > pieces of XML for structure (regardless of whitespace, formatting, etc.)? > > That is a job for XSLT. (I suspect.) Can you process two documents in parallel with xslt? I don't think you can. I suspect two "pull" parsers running in parallel would be the efficient way, then you could decide what exactly you mean by "structure". Another way would be to "canonicalize" the xml, and them bytewise compare the pieces. Sam