I'm testing an application that returns an empty file (without any element).
The Java XML parser raised an :
org.xml.sax.SAXParseException: Premature end of file.
but I want XMLUnit to keep going and be able to compare with an empty DOM.
Is it possible ?
Thanks,
Tony
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No, there is no way to tell XMLUnit to process an empty file as an empty Document instance. XMLUnit doesn't inspect the content at all but only passes it on to the parser.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm testing an application that returns an empty file (without any element).
The Java XML parser raised an :
org.xml.sax.SAXParseException: Premature end of file.
but I want XMLUnit to keep going and be able to compare with an empty DOM.
Is it possible ?
Thanks,
Tony
any update ?
I'm using XMLUnit 1.2, on Windows 2000 SP4. JRE 1.5.0.
Thanks,
Tony
No, there is no way to tell XMLUnit to process an empty file as an empty Document instance. XMLUnit doesn't inspect the content at all but only passes it on to the parser.