W3C Java Validators
The library contains Java adapters of W3C online validators:
HtmlValidator
- validates HTML against W3C Markup Validation Service.HtmlValidator (local)
- validates HTML against a local instance of W3C Markup Validation Service installed in your server.CssValidator
- validates CSS against W3C Jigsaw validator.
The only dependency you need is (you can also download jcabi-w3c-1.4.0.jar
and add it to the classpath):
<dependency> <groupId>com.jcabi</groupId> <artifactId>jcabi-w3c</artifactId> <version>1.4.0</version> </dependency>
Cutting Edge Version
If you want to use current version of the product, you can do it with this configuration in your pom.xml
:
<repositories> <repository> <id>oss.sonatype.org</id> <url>https://oss.sonatype.org/content/repositories/snapshots/</url> </repository> </repositories> <dependencies> <dependency> <groupId>com.jcabi</groupId> <artifactId>jcabi-w3c</artifactId> <version>2.0-SNAPSHOT</version> </dependency> </dependencies>