Sedang Disiapkan

222471 HTML to CSV - Java Converter

I'm looking for a simple converter method. The method would take as input an HTML string that contains a table. The table would contain multiple rows and multiple columns. The method would produce as output a proper CSV String. The language must be in Java as I wish to drop it right into my server-side code.

The method only needs to deal with a minimal number of table related tags. These tags are <tr>, <th>, <td>, colspan, rowspan

Example of method:

Input:

<table><tr><th>Header 1</th><th>Header 2</th></tr>

<tr><td>Data 1</td><td>Data 2</td></tr>

</table>

Output:

Header 1, Header 2

Data 1, Data 2

You can assume all HTML passed in will be valid XHTML with close tags for every start tag in the correct order (a </td> for every </td>).

Kemahiran: Semua Boleh, Java

Lihat lebih lanjut: html csv java, java html table csv, html table csv java, html csv converter java, m string, java html csv, html string csv java, html csv, language converter, simple csv, java related, html tags, correct csv, all html, java code example, order java, java html table, java simple example, html order, string html, table csv, html number, java server side, code example java, csv table

Tentang Majikan:
( 2 ulasan ) Round Rock, United States

ID Projek: #1968706

Dianugerahkan kepada:

devunion

Dear Sir, please, see PMB.

$24 USD dalam sehari
(19 Ulasan)
5.6