本文介绍了我怎么可能用在我的.NET应用程序的W3C标记验证API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现有一个 API W3C的标记验证

我早先问:Is有一个.NET库对W3C标记验证API?

阿萨夫的answer:

所以,我试图添​​加服务引用在地址 http://validator.w3.org/check

首先,对话框显示:

然后:

错误的详细信息:

 <!DOCTYPE HTML PUBLIC -  // W3C // DTD XHTML 1.0 Strict标准// EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> < HTML的xmlns =htt​​p://www.w3.org/1999/xhtmlXML:LANG =ENLANG =EN> < HEAD>
< META HTTP-当量=Content-Type的CONTENT =text / html的;字符集= UTF-8/>
<冠军>

        验证结果 -  W3C标记验证器/标题>
    <链接相对=图标 href="data:image/png,%89PNG%0D%0A%1A%0A%00%00%00%0DIHDR%00%00%00%10%00%00%00%10%08%02%00%00%00%90%91h6%00%00%00%19IDAT(%91c%BCd%AB%C2%40%0A%60%22I%F5%A8%86Q%0DCJ%03%00%DE%B5%01S%07%88%8FG%00%00%00%00IEND%AEB%60%82" TYPE =图像/ PNG/>
<链接REV =制作的href =邮寄地址:[email protected]/>
<链接REV =开始的href =./称号=首页/>
<风格类型=文本/ CSS媒体=所有> @import./style/base.css;
        @import./style/results.css";</style>
&LT; META NAME =关键词内容=HTML,超文本标记语言,验证,
  W3C标记验证服务/&GT;
&LT; META NAME =说明内容=W3C的易于使用的
  H
 

如何使用W3C标记验证API在我的.net应用程序?

解决方案

W3C的服务是没有标准的SOAP服务!它可以给一个SOAP格式的响应,但把它称作是一个sinple REST基于URL的服务的

I found that there's an API for the W3C Markup Validator.

I had earlier asked: Is there a .NET library for the W3C Markup Validator API?

Assaf's answer:

So, I tried to "Add Service Reference" at address http://validator.w3.org/check.

First the dialog displays:

Then:

Error details:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">   <head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>

        Validation Results - W3C Markup Validator</title>
    <link rel="icon" href="data:image/png,%89PNG%0D%0A%1A%0A%00%00%00%0DIHDR%00%00%00%10%00%00%00%10%08%02%00%00%00%90%91h6%00%00%00%19IDAT(%91c%BCd%AB%C2%40%0A%60%22I%F5%A8%86Q%0DCJ%03%00%DE%B5%01S%07%88%8FG%00%00%00%00IEND%AEB%60%82" type="image/png" />
<link rev="made" href="mailto:[email protected]" />
<link rev="start" href="./" title="Home Page" />
<style type="text/css" media="all">@import "./style/base.css";
        @import "./style/results.css";</style>
<meta name="keywords" content="HTML, HyperText Markup Language, Validation,
  W3C Markup Validation Service" />
<meta name="description" content="W3C's easy-to-use
  H

How can I use the W3C Markup Validator API in my .NET application?

解决方案

The W3C Service is no standard SOAP Service! It can give a SOAP formatted response but to call it's a sinple REST URL based Servicehttp://validator.w3.org/check?uri=YourURLToProof&charset=utf-8&output=soap12

这篇关于我怎么可能用在我的.NET应用程序的W3C标记验证API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 07:30