0

Using htmlagilitypack i'm extracting the html content from a web page and storing it in a string. I have even removed all the tags in the output. Now i want to populate the data grid with the values inside the output string. I thought of converting this string which has html content to xml and use it as source for datagrid. When i convert html string to xml the output is looking like below code, CRM

         
        some text

          education details

          Id details 
      Salary
      Experience
      Location
      Name 
                    Mobile: 
                    Region 
         
        Similar Resumes    New  crm


         
        crm

          education details

          Id details 

      Experience

      Name 

                    Telephone: Region 
         
        Similar Resumes      CRM


         

Here there are no tags in xml file, hence don't know how make these values display in datagrid.

Maddy
  • 263
  • 1
  • 9
  • 24

1 Answers1

0

See question What does <![CDATA[]]> in XML mean? to read more and

Remember: &amp;nbsp; need converted to space. Text input in CDATA is your text for output in grid.

Example

<description>
<![CDATA[
    some text

      education details

      Id details 
  Salary
  Experience
  Location
  Name 
                Mobile: 
                Region 
    Similar Resumes    New crm


   ...
]]> 
</description>
Community
  • 1
  • 1
Jones
  • 1,480
  • 19
  • 34