Hello dear Community, howdy!
i have a document i need to parse it and spit out only this part of the table:
see http://schulnetz.nibis.de/db/schulen/schule.php?schulnr=67003&lschb=
How to i parse the stuff!? With perl or php? I like Perl... for its great capabilities. It has the power of doing things with ease -
Note i have the xpaths (see below) Sad that i cannot apply them on Simple DOM Parser since this
Dom Parser does not work with Xpaths but with CSS-Selectors:
Well i want to get all the data with that are within the table that name is called class="fliess"
How to dump all the results?
BTW - thinking about the most elegant way, i think it is the most pretty way would be to do it with perl -
So i can try it with HTML::TableExtract or....
Well what do you suggest - Which way to choose to do this
very simple thing?
Look forward to hear from you!
pb1
see the xpaths - i think this is a good starting point for running table - extract:
Schule: /html/body/center/table/tbody/tr
2/td
1
Stasse: /html/body/center/table/tbody/tr
3/td
1
Ort: /html/body/center/table/tbody/tr
4/td
1
Tel: /html/body/center/table/tbody/tr
5/td
1
Schulgliederungen: /html/body/center/table/tbody/tr
6/td
1
Besonderheite: /html/body/center/table/tbody/tr
7/td
1
E-Mail: /html/body/center/table/tbody/tr
8/td
1
Schulnummer: /html/body/center/table/tbody/tr
9/td
1
... good starting points...
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.