{"id":16103468,"url":"https://github.com/wolfgangfahl/w3cvalidator","last_synced_at":"2025-03-18T08:31:16.111Z","repository":{"id":21027208,"uuid":"24322368","full_name":"WolfgangFahl/w3cValidator","owner":"WolfgangFahl","description":"Java Library to call local or w3c.org w3cValidator for html","archived":false,"fork":false,"pushed_at":"2018-08-22T16:02:35.000Z","size":215,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T08:18:36.660Z","etag":null,"topics":["java","w3c-validator"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WolfgangFahl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-22T09:27:13.000Z","updated_at":"2022-04-29T15:58:27.000Z","dependencies_parsed_at":"2022-08-17T21:10:47.240Z","dependency_job_id":null,"html_url":"https://github.com/WolfgangFahl/w3cValidator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolfgangFahl%2Fw3cValidator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolfgangFahl%2Fw3cValidator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolfgangFahl%2Fw3cValidator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolfgangFahl%2Fw3cValidator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WolfgangFahl","download_url":"https://codeload.github.com/WolfgangFahl/w3cValidator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910814,"owners_count":20367545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","w3c-validator"],"created_at":"2024-10-09T18:57:26.341Z","updated_at":"2025-03-18T08:31:15.783Z","avatar_url":"https://github.com/WolfgangFahl.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"### w3cValidator\n[Java library to call W3C Validator check](http://www.bitplan.com/W3cValidator) \n\n[![Travis (.org)](https://img.shields.io/travis/WolfgangFahl/w3cValidator.svg)](https://travis-ci.org/WolfgangFahl/w3cValidator)\n[![Maven Central](https://img.shields.io/maven-central/v/com.bitplan/w3cValidator.svg)](https://search.maven.org/artifact/com.bitplan/w3cValidator/0.0.5/jar)\n[![GitHub issues](https://img.shields.io/github/issues/WolfgangFahl/w3cValidator.svg)](https://github.com/WolfgangFahl/w3cValidator/issues)\n[![GitHub issues](https://img.shields.io/github/issues-closed/WolfgangFahl/w3cValidator.svg)](https://github.com/WolfgangFahl/w3cValidator/issues/?q=is%3Aissue+is%3Aclosed)\n[![GitHub](https://img.shields.io/github/license/WolfgangFahl/w3cValidator.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![BITPlan](http://wiki.bitplan.com/images/wiki/thumb/3/38/BITPlanLogoFontLessTransparent.png/198px-BITPlanLogoFontLessTransparent.png)](http://www.bitplan.com)\n\n### Documentation\n* [Wiki](http://www.bitplan.com/W3cValidator)\n* [w3cValidator Project pages](https://WolfgangFahl.github.io/w3cValidator)\n* [Javadoc](https://WolfgangFahl.github.io/w3cValidator/apidocs/index.html)\n* [Test-Report](https://WolfgangFahl.github.io/w3cValidator/surefire-report.html)\n### Maven dependency\n\nMaven dependency\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.bitplan\u003c/groupId\u003e\n  \u003cartifactId\u003ew3cValidator\u003c/artifactId\u003e\n  \u003cversion\u003e0.0.5\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n[Current release at repo1.maven.org](http://repo1.maven.org/maven2/com/bitplan/w3cValidator/0.0.5/)\n\n### How to build\n```\ngit clone https://github.com/WolfgangFahl/w3cValidator\ncd w3cValidator\nmvn install\n```\n\n\n### Purpose\nAt http://validator.w3.org/ the W3C offers an online validation service for checking html code to\nbe standard compliant. There is also an API available that is described at \nhttp://validator.w3.org/docs/api.html\n\nThis is a Java Library to call this API. The url of the service may be the official w3c \nvalidator at http://validator.w3.org/check or a copy of this service installed in your own environment.\n\n\n### How to use\nThis java Library calls the W3C Validator according to\n* http://validator.w3.org/docs/api.html\n\n## Example:\n  To check some html code with an unclosed div tag with the validator\n  at w3.org:\n\n```Java\n  // url to use - modify if you have your own installation\n  public static final String url=\"http://validator.w3.org/check\";\n  \n  // html code to check\n  String html=\"\u003c!DOCTYPE html\u003e\\n\"+\n    \"\u003chtml\u003e\\n\"+\n    \"  \u003chead\u003e\\n\"+\n    \"    \u003ctitle\u003etest W3CChecker\u003c/title\u003e\\n\"+\n    \"  \u003c/head\u003e\\n\"+\n    \"  \u003cbody\u003e\\n\"+\n    \"    \u003cdiv\u003e\\n\"+\n    \"  \u003c/body\u003e\\n\"+\n    \"\u003c/html\u003e\";\n    \n  // API call \n\tW3CValidator checkResult = W3CValidator.check(url, html);\n```\n  The returned W3CValidator object has the structure of the SOAP-Response as outlined in\n  http://validator.w3.org/docs/api.html\n  \n  e.g. checkResult.body.response.errors.errorlist will contain a list of ValidationErrors\n  with line col and message for each error.\n  \n### Example Output (from JUnit tests):\n```\t\nValidation result for test 1:\n\tValidationError line 10 col 9:'end tag for \"DIV\" omitted, but its declaration does not permit this'\n\tValidationWarning line 0 col 0:'Using Direct Input mode: UTF-8 character encoding assumed'\n\nValidation result for test 2:\n\tValidationError line 1 col 82:'End tag for  body seen, but there were unclosed elements.'\n\tValidationError line 1 col 75:'Unclosed element div.'\n\tValidationWarning line 0 col 0:'No Character encoding declared at document level'\n\tValidationWarning line 0 col 0:'Using Direct Input mode: UTF-8 character encoding assumed'\n```\n## Version history\n| Version | date | changes\n| ------  | ----- | ---------\n| 0.0.1   | 2014-09-22 | first published version\n| 0.0.2   | 2014-09-26 | fixes issue with 0x0 unicode in html \n| 0.0.3   | 2016-06-15 | upgrades jersey to 1.19.1 and eclipselink to 2.6.3\n| 0.0.4   |            | never published\n| 0.0.5   | 2018-08-22 | upgrades to Java8, changes License to Apache, improves README, upgrades Libraries\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolfgangfahl%2Fw3cvalidator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwolfgangfahl%2Fw3cvalidator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolfgangfahl%2Fw3cvalidator/lists"}