Perlbeginner1 has asked for the wisdom of the Perl Monks concerning the following question:

Hello dear Community, i have a large document - and i want it to parse it and spit out only parts - i.e. some matched nodes:

Question: How to get the matichng nodes out of 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


//acontains(@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 - http://img259.imageshack.us/img259/7360/sceenshoteval5.jpg

- see tje many matching nodes...: The question is: how can i copy and paste the results - in order to do further processing from thereon?

look forward to hear from you

regards
  • Comment on saving firepath eval-results [matching-nodes] in order to do further processing from thereon

Replies are listed 'Best First'.
Re: saving firepath eval-results [matching-nodes] in order to do further processing from thereon
by marto (Cardinal) on Dec 03, 2010 at 16:57 UTC

    Are you asking how to use a Firefox plugin or how to do this using Perl? Searching cpan you'll find several HTML Parsers. In the past you've posted questions here on HTML::Parser, HTML::TreeBuilder and HTML::TableExtract, and been given lots of advice.

    Update: Just noticed you third tab along in the screenshot, trying to find a php solution for this problem too?