c# - How to deserialize xml in which a node contains html tags? -


<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; ) chemical name <b>benzene</b> identified.<br>the following terms added 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> 

i string web service , doesnt send html in cdata section. error is: system.xml.xmlexception: 'br' start tag on line 1 not match end tag

i using .net 3.5, webclient consume rest web service.

i know problem. solve including namespace html.

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

this error thrown empty elements <br />, <hr />, <input /> , on.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

c++ - Accessing inactive union member and undefined behavior? -

php - Get uncommon values from two or more arrays -