Closed GoogleCodeExporter closed 9 years ago
http://groovy.codehaus.org/Validating+XML+with+a+W3C+XML+Schema
http://groovy.codehaus.org/Validating+XML+with+a+DTD
Original comment by johan.ha...@gmail.com
on 15 Feb 2011 at 7:47
syntax should probably be:
expect().body().matchesXsd(XSD). ..
Should support string, inputstream, file, reader etc
Original comment by johan.ha...@gmail.com
on 18 Feb 2011 at 3:27
http://stackoverflow.com/questions/1096365/validate-an-xml-file-against-local-dt
d-file-with-java
Original comment by johan.ha...@gmail.com
on 20 Feb 2011 at 6:04
Perhaps syntax should be:
expect().body(matchesXsd(XSD))..
Original comment by johan.ha...@gmail.com
on 20 Feb 2011 at 6:05
http://www.roseindia.net/xml/dom/DOMValidateDTD.shtml
Original comment by johan.ha...@gmail.com
on 20 Feb 2011 at 6:06
expect().bodyMatchesXsd(..)
expect().bodyMatchesDtd(..)
expect().body(dtd(dtdString)).
expect().body().matchesDtd(dtdString).
expect().matchesDtd(dtdString).
expect().body().dtd(dtdString).
expect().validation().dtd(dtdString).
expect().dtd(dtdString).
expect().dtdValidation(dtdString).
expect().xsdValidation(xsdString).
Original comment by johan.ha...@gmail.com
on 25 Feb 2011 at 10:10
Hamcrest matcher may be better since then you can use both for expectations and
for hamcrest matching when the response have been returned as String.
E.g.
expect().body(matchesDtd(dtd))..
String body = get("/lotto").asString();
assertThat(body, matchesDtd(dtd));
Original comment by johan.ha...@gmail.com
on 26 Feb 2011 at 10:06
http://www.apacheserver.net/q32629/Java-DTD-validation-XML-files-without-DTD-dec
laration-included-in
Original comment by johan.ha...@gmail.com
on 1 Mar 2011 at 8:52
Original comment by johan.ha...@gmail.com
on 1 Mar 2011 at 7:48
Original issue reported on code.google.com by
johan.ha...@gmail.com
on 13 Feb 2011 at 1:37