I've planned a new Application. My Idea is, to generate XML docs. I need a way to convert this XML docs to a HTML Table.
My XML structure is:
<Checklist>
  <Title>Titletext</Title>
     <Group>
       <Title>Active Directory</Title>
       <Content>
        <Line>
          <text type="array">
            <value>Connect to:</value>
            <value>dsa.msc start</value>
          </text>
         </Line>
         <Line>
          <text type="array">
            <value>Gruppen anpassen anhand des Arbeitsortes</value>
            <value>Profilpfad eintragen</value>
          </text>
         </Line>
       </Content>
     </Group>
   </Checklist>
I'll try to convert this xml to HTML Tables like this:
<html>
  <table>
    <tr class="head">
      <td>#Group -> Title</td>
    </tr>
    <tr class="text">
      <td><p>#Line -> Value 1</p><p>@Line -> Value2</p></td>
    </tr>
  </table>
</html>
My first idea was, to read the XML line by line, and add this values to a ListArray. With a foreach i'll try to generate the HTML
foreach(string item in ViewBag.Content)
Is there a much "better" option or should i try to solve this this way =) Maybe someone can give me a best practice hint or something =)
Thanks!
 
     
     
     
    