Converting dataq from XML table to HTMl table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abhishekbrave
    New Member
    • Dec 2007
    • 79

    Converting dataq from XML table to HTMl table

    I hava xml code in following format. My aim is to convert this show the data present here in tabular format to a HTML page.
    Code:
    <table bid="18" sid="7" ref="REF_17" x="0" y="80" h="50" w="607" nbrow="1" nbcol="1" class="section">
    - <tr y="0" h="50">
    - <td>
    - <bag h="50" w="607" layout="bag">
    - <bag bid="18" sid="7" ref="REF_18" x="0" y="0" h="50" w="607" layout="bag">
    - <cell bid="3" sid="3" ref="REF_19" x="10" y="4" h="16" w="213">
      <ct what="text">10032</ct> 
      </cell>
    - <table bid="16" sid="7" ref="REF_20" x="10" y="20" h="20" w="597" nbrow="1" nbcol="12" class="htable">
    - <tr y="0" h="20" type="body">
    - <td colspan="1" rowspan="1">
    - <cell bid="4" sid="4" ref="REF_21" x="0" y="0" h="20" w="41">
      <ct what="text">10032</ct> 
      </cell>
      </td>
    - <td colspan="1" rowspan="1">
    - <cell bid="5" sid="4" ref="REF_22" x="0" y="0" h="20" w="10">
      <ct what="text">,</ct> 
      </cell>
      </td>
    - <td colspan="1" rowspan="1">
    - <cell bid="6" sid="4" ref="REF_23" x="0" y="0" h="20" w="69">
      <ct what="text">2008-02-26</ct> 
      </cell>
      </td>
    - <td colspan="1" rowspan="1">
    - <cell bid="7" sid="4" ref="REF_24" x="0" y="0" h="20" w="55">
      <ct what="text">20:11:36</ct> 
      </cell>
      </td>
    - <td colspan="1" rowspan="1">
    - <cell bid="8" sid="4" ref="REF_25" x="0" y="0" h="20" w="10">
      <ct what="text">,</ct> 
      </cell>
      </td>
    - <td colspan="1" rowspan="1">
    - <cell bid="9" sid="4" ref="REF_26" x="0" y="0" h="20" w="25">
      <ct what="text">4</ct> 
      </cell>
      </td>
    - <td colspan="1" rowspan="1">
    - <cell bid="10" sid="4" ref="REF_27" x="0" y="0" h="20" w="9">
      <ct what="text">,</ct> 
      </cell>
      </td>
    - <td colspan="1" rowspan="1">
    - <cell bid="11" sid="4" ref="REF_28" x="0" y="0" h="20" w="44">
      <ct what="text">vasco1</ct> 
      </cell>
      </td>
    - <td colspan="1" rowspan="1">
    - <cell bid="12" sid="4" ref="REF_29" x="0" y="0" h="20" w="10">
      <ct what="text">,</ct> 
      </cell>
      </td>
    - <td colspan="1" rowspan="1">
    - <cell bid="13" sid="4" ref="REF_30" x="0" y="0" h="20" w="149">
      <ct what="text">addDevice</ct> 
      </cell>
      </td>
    - <td colspan="1" rowspan="1">
    - <cell bid="14" sid="4" ref="REF_31" x="0" y="0" h="20" w="7">
      <ct what="text">,</ct> 
      </cell>
      </td>
    - <td colspan="1" rowspan="1">
    - <cell bid="15" sid="4" ref="REF_32" x="0" y="0" h="20" w="168">
      <ct what="text">Device added</ct> 
      </cell>
      </td>
      </tr>
      </table>
    Any pointer in this regard will be very helpful
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    How far have you gotten? Have you looked at any reference materials such as:
    W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.


    You may be able to use div s, for the bag elements.

    Comment

    Working...