PHP Coding / PHP Coding Help / saving firepath eval-results in order to do further

Hello dear Community,

i have a large document - and i want it to parse it and spit out only this part: schule.php?schulnr=80287&lschb=

Question: How to i parse the stuff!?

Well i try it with FireBug and FirePath (the Xpath-tool) i do it like the following:

* Load the document into my browser, if possible
* start Firebug extension/add-on
* run the FirePath extension
*  and run the xpath

  //a[contains(@href, "schule")]/@href
*

  then i click "Eval" button.

i find 2030 results - that are marked - how do i get them out of the firebug - to work with them?! If i have to be more precise - please let me know!! Perhaps i have to write more - and to add more information

See the screenshot - here http://img259.imageshack.us/img259/7360/sceenshoteval5.jpg

how can i copy and paste the results - in order to do further processing from thereon.

look forward to hear from you

regards

It is a nice PHP coding…

From your browser save the whole document to a file; then use sed to extract what you want (and possibly edit/change it). That would be my personal style to do this. Others might recommend awk.

P.S. I can’t see any PHP in your example; just plain HTML. You want to extract all the links pointing to any school?

hi Voodoo - thx alot.

i try to do so! Many many thanks for the hints!

ps - i reply again later