tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* HTML parser (not Tru64 specific)
@ 2001-05-01 19:10 Nikola Milutinovic
  0 siblings, 0 replies; only message in thread
From: Nikola Milutinovic @ 2001-05-01 19:10 UTC (permalink / raw)
  To: tru64-unix-managers

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-01 19:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-01 19:10 HTML parser (not Tru64 specific) Nikola Milutinovic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox