Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Conversion from XML to Java Custom Object

 
maria kumar
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have HTML Table structure in XML format. We want to convert this entire HTML tags into Java Bean/Custom Object.

Example :

<table id="t1">
<!-- Header Information -->
<tr>
<th>Heading1</th>
<th>Heading2</th>
<th>Heading3</th>
<tr>
<!-- Data Value -->
<tr>
<td colspan"xx">value1</td>
<td>value2</td>
<td>value3</td>
</tr>
</table>

Now we wanted to convert this XML into Custom Java class. Can you suggest me way to populate this XML of HTML tags.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Harold's free online book is loaded with examples of extracting data from XML documents and a great general reference.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic