From: Nikola Milutinovic <Nikola.Milutinovic () ev ! co ! yu>
To: tru64-unix-managers
Subject: HTML parser (not Tru64 specific)
Date: Tue, 01 May 2001 19:10:43 +0000 [thread overview]
Message-ID: <102653647621649.tru64-unix-managers.marc@archive.invalid> (raw)
Hi all.
This is not Tru64 specific, but is a head-cracker for me.
I have a HTML file which contains a HTML table - clean structure, 3 coumns all
around. Like this:
<table>
<tr>
<td class="e-mail><a href=mailto:Name.Surname@ev.co.yu>Name Surname</a></td>
<td class="position>Position title</td>
<td class="phone">123456</td>
</tr>
...
</table>
I would like to extract just those table cells - the text between <td>...</td>.
The problem is, according to HTML specification, newlines mean nothing to HTML
parser, so I cannot use any of the line-based tools like sed, awk,...
I need something that can parse such a file with that specification in mind. I'd
like to get the following:
<a href=mailto:Name.Surname@ev.co.yu>Name Surname</a>
Position title
123456
as a result. I'm not really into all those "parser" utilities of the Development
package.
Any suggestions?
TYIA,
Nix.
reply other threads:[~2001-05-01 19:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox