On 5/18/06, Priest, Mark <[EMAIL PROTECTED]> wrote:
I think what you are trying to do is derive a canonical form of each XML
document for comparison.  This turns out to be more involved than simply
addressing ignorable whitespace.

Thanks for the information about canonicalization. It appears to be
what I was looking for albeit in a simplistic form. My particular use
case does not require such stringent canonicalization, though it
certainly doesn't hurt. Basically, I'm building unit tests where I
need to compare actual XML output to expected XML output. The expected
output is written by developers and my hope is that they wouldn't have
to worry too much about insignificant spaces causing failed unit
tests.

In side note, don't use my code from earlier. It appears to break when
there are several line feed characters for some reason.


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to