Perlbeginner1 has asked for the wisdom of the Perl Monks concerning the following question:
Schuldaten. Schulnummer: Amtliche Bezeichnung: Strasse: Plz und Ort: Telefon: Fax: E-Mail-Adresse: Schuldaten ändern] :(this is UTF8 encoded or what) Schülergesamtzahl (this is UTF8 encoded or what)
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1 +"> <meta name="GENERATOR" content="Microsoft FrontPage 3.0"> <link rel="stylesheet" href="jspsrc/css/bp_style.css" type="text/css"> <title>Weitere Schulinformationen</title> </head> <body class="bodyclass"> <div style="text-align:center;"><center> <!-- <fieldset><legend> Allgemeine Informationen zur Schule </legend> --> <br/> <table border="1" cellspacing="0" bordercolordark="white" bordercolorl +ight="black" width="80%" class='bp_ergebnis_tab_info'> <!-- <table border="0" cellspacing="0" bordercolordark="white" borderc +olorlight="black" width="80%" class='bp_SchuleSuchenInfo'> --> <tr> <td width="100%" colspan="2" class="ldstabTitel"><strong>Schuldate +n</strong></td> </tr> <tr> <td width="27%"><strong>Schulnummer</strong></td> <td width="73%"> 120571 </td> </tr> <tr> <td width="27%"><strong>Amtliche Bezeichnung</strong></td> <td width="73%"> Paul-Gerhardt-Schule Ev. Grundschule </td> </tr> <tr> <td width="27%"><strong>Strasse</strong></td> <td width="73%"> Sonnenstr. 11 </td> </tr> <tr> <td width="27%"><strong>Plz und Ort</strong></td> <td width="73%"> 59269 Beckum </td> </tr> <tr> <td width="27%"><strong>Telefon</strong></td> <td width="73%"> 02521 950725 </td> </tr> <tr> <td width="27%"><strong>Fax</strong></td> <td width="73%"> </td> </tr> <tr> <td width="27%"><strong>E-Mail-Adresse</strong></td> <td width="73%"> <a href=mailto:120571@schule.nrw.de>120571@s +chule.nrw.de </a> </td> </tr> <tr> <td width="27%"><strong>Internet</strong></td> <td width="73%"> <a href=http://www.paul-gerhardt-schule-beck +um.de>http://www.paul-gerhardt-schule-beckum.de </td> </tr> <!-- <tr> <td width="27%"> </td> <td width="73%" align="right"><a href="schule_aeinfo.php?SNR=<? pr +int $SCHULNR ?>" target="_blank"> [Schuldaten ändern] </a> </tr> </td> --> <tr> <td width="27%"> </td> <td width="73%"> Schule in öffentlicher Trägerschaft</td> </tr> <tr> <td width="100%" colspan=2><strong> </strong></td> </tr> <tr> <td width="27%"><strong>Schülergesamtzahl</strong></td> <td width="73%"> 228 </td> <tr> <td width="100%" colspan=2><strong> </strong></td> </tr> <tr> <td width="27%"><strong>offene Ganztagsschule</strong></td> <td width="73%"> Ja</td> </tr> <tr> <td width="27%"><strong>Schule von acht bis eins</strong></td> <td width="73%"> Ja</td> </tr> <!-- if (!fsp.isEmpty()){ ztext = " "; int i = 0; Iterator it = fsp.iterator(); while (it.hasNext()){ String[] zwert = new String[2]; zwert = (String[])it.next(); if (i==0){ if (zwert[1].equals("0")){ ztext = ztext+zwert[0]; }else{ ztext = ztext+zwert[0]+" mit "+zwert[1]; if (zwert[1].equals("1")){ ztext = ztext+" Schüler"; }else{ ztext = ztext+" Schülern"; } } i++; }else{ if (zwert[1].equals("0")){ ztext = ztext+"<br> "+zwert[0]; }else{ ztext = ztext+"<br> "+zwert[0]+" mit "+zwert[1]; if (zwert[1].equals("1")){ ztext = ztext+" Schüler"; }else{ ztext = ztext+" Schülern"; } } } } --> </table> <!-- </fieldset> --> <br> </body> </html>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML::TableExtract: Parsing 9 lines of text in a table
by tinita (Parson) on Oct 18, 2010 at 09:15 UTC | |
|
Re: HTML::TableExtract: Parsing 9 lines of text in a table
by Anonymous Monk on Oct 17, 2010 at 23:52 UTC | |
by Perlbeginner1 (Scribe) on Oct 18, 2010 at 07:09 UTC | |
by Corion (Patriarch) on Oct 18, 2010 at 07:21 UTC | |
by graq (Curate) on Oct 25, 2010 at 07:36 UTC | |
by Perlbeginner1 (Scribe) on Oct 18, 2010 at 10:26 UTC |