You know, this is actually the solution to my problem. I've been
intermittently fooling around with this API, and had overlooked the
method I was looking for:

http://xmlunit.sourceforge.net/doc/org/custommonkey/xmlunit/XMLUnit.html#setIgnoreWhitespace(boolean)

Anyhow, thanks everyone for their input. I also looked at
canonicalization briefly, and boy am I glad I got xmlunit working ....

On 5/19/06, Ben Munat <[EMAIL PROTECTED]> wrote:
Noah, have you heard about xmlunit[1]? I haven't used it, and it looks like it 
hasn't been
  updated in a long time... but still, it might offer some help with your 
problem.

b

[1] http://xmlunit.sourceforge.net/



Noah Davis wrote:
> 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


-------------------------------------------------------
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



-------------------------------------------------------
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