Hello dear Honza, hello dear Community,
may many thanks for the posting!
i have a large document - and i want it to parse it and spit out only this
part: schule.php?schulnr=80287&
lschb=
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 - plz 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
On Fri, Dec 3, 2010 at 9:59 AM, Honza (Jan Odvarko) <[email protected]>wrote:
>
> > how to i parse the stuff!?
> I don't understand this part. Do you want to parse the document (HTML)
> or the URL?
>
>
I did the parsing....
>
> > 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 - plz let me know!! Perhaps i have to
> > write more - and to add more
> > information
> >
> > how can i copy and paste the results - in order to do further
> > processing from thereon.
> So, I guess you *need to copy all the selected elements within the
> FirePath panel, correct?*
>
> *
That is correct! you are right!!*
see the screenshot - here
http://img259.imageshack.us/img259/7360/sceenshoteval5.jpg
> I don't know how the FirePath extension is implemented but it looks
> like the panels is derived from HTML panel (uses the same visual
> structure). And in the HTML panel, every selected element is using
> "selected" class attribute.
>
> The HTML implementation is here:
>
> http://code.google.com/p/fbug/source/browse/branches/firebug1.6/content/firebug/html.js
>
> You need to iterate the panel content and copy selected elements.
>
> Or you can do the same what FirePath does, ie. execute XPath on the
> document and get the results directly. So, you don't have to iterate
> the UI.
>
> Honza
>
>
Honza - i love to hear from you!!
best regards
Martin
--
You received this message because you are subscribed to the Google Groups
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/firebug?hl=en.