1
<Translation> (  benzene  OR  pyrobenzole  OR  pyrobenzol  OR  &quot;phenyl      hydride&quot;              OR  phene  OR  &quot;fenzen  czech  &quot;  cyclohexatriene  &quot;coal  naphtha&quot;  OR  &quot;benzolo  italian  &quot;  benzole  benzol  &quot;benzen  polish  &quot;  &quot;benzeen  dutch  &quot;  ) The chemical name <b>benzene</b> was identified.<br>The following terms were added from ChemIDplus:<br><b>pyrobenzole</b><br><b>pyrobenzol</b><br><b>phenyl hydride</b><br><b>phene</b><br><b>fenzen  czech </b><br><b>cyclohexatriene</b><br><b>coal naphtha</b><br><b>benzolo  italian </b><br><b>benzole</b><br><b>benzol</b><br><b>benzen  polish </b><br><b>benzeen  dutch </b><br>CAS Registry Number: <b>71-43-2</b><br></Translation>

Web サービスから文字列を取得しましたが、cdata セクションで html を送信しません。私が得るエラーは次のとおりです: System.Xml.XmlException: The 'br' start tag on line 1 does not match the end tag

私は.net 3.5、webclientを使用してREST Webサービスを利用しています。

4

1 に答える 1

0

I know this problem. I could solve it by including the namespace for HTML.

xmlns="http://www.w3.org/1999/xhtml"

This error will be thrown for all empty elements like <br />, <hr />, <input /> and so on.

于 2013-04-18T12:38:13.593 に答える