aspose file tools*
The moose likes XML and Related Technologies and the fly likes Conversion from XML to Java Custom Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Conversion from XML to Java Custom Object" Watch "Conversion from XML to Java Custom Object" New topic
Author

Conversion from XML to Java Custom Object

maria kumar
Greenhorn

Joined: Jun 17, 2007
Posts: 11
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

Joined: Mar 22, 2000
Posts: 12675
    
    5
Harold's free online book is loaded with examples of extracting data from XML documents and a great general reference.

Bill

Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Conversion from XML to Java Custom Object
 
Similar Threads
HTML Parser for Java
HTML table
Jakarta Taglib project
HTML Table Column Widths
XSLT Displays HTML Tags in Browser.