Jump to content

parsing with PHP Simple HTML DOM Parser - a heritage


dilbertone

Recommended Posts

 

Hello dear Community,

 

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?

 

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!

 

see the xpaths:

 

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]

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.