<Translation> ( benzene OR pyrobenzole OR pyrobenzol OR "phenyl hydride" OR phene OR "fenzen czech " cyclohexatriene "coal naphtha" OR "benzolo italian " benzole benzol "benzen polish " "benzeen dutch " ) 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:&#39; br&#39;第1行的开始标记与结束标记
不匹配我使用.net 3.5,webclient使用REST Web服务。
答案 0 :(得分:0)
我知道这个问题。我可以通过包含HTML的命名空间来解决它。
xmlns="http://www.w3.org/1999/xhtml"
对于<br />
,<hr />
,<input />
等所有空元素,都会抛出此错误。