Hpricot search

I have an html like

Red<


  • blue
  • I have to write code in such way that i wanna search

  • text
    until

    between 2 span Ex:

  • What have you written so far and why do you think it didn’t work?

    On Sep 7, 8:43 pm, prashanth hiremath [email protected]

    I have an html

    Central Kolkata

  • Eden Gardens (one of the most famous cricket stadiums in the world),
  • Akashwani Bhavan, All India Radio building
  • Indoor Stadium
  • Fort William, the massive and impregnable British Citadel built in 1773. The fort is still in use and retains its well-guarded grandeur. Visitors are allowed in with special permission only.
  • Victoria Memorial [10] Along St. George’s Gate Road, on the southern fringe of the Maidan, you will find Kolkata's most famous landmark , a splendid white marble monument (CLOSED MONDAYS).
  • Calcutta Racecourse
  • Chowringee, is the Market place of Kolkata. You will find shops ranging from Computer Periferals to cloth merchants. Even tailors and a few famous Movie theaters too. This place is a favourite pass time for local people.
  • Northern Kolkata

  • Nakhoda Mosque1 (the largest mosque in Kolkata) and the
  • Shobhabajar Rajbari the ancestral house of Rja Naba Krishna, one of the rich locals to side with Clive during his war with Nabab Siraj-Ud-Daula.
  • Jorasanko Thakur Bari1 (Tagore Family residence).
  • Parashnath Jain Temple, near the Belgachia metro station.
  • Parashnath Jain Temple, at Gouribari, less visited, reachable from the Sovabazar Metro station (take an auto rickshaw).
  • if wanna search innert_text of

  • tags upto Northern Kolkata

    but it searches all

  • my code is

    doc.search(“li”).each do |y|

    it searches all

  • i know but i wanna stop upto element using
    hpricot

    Regards
    Prashant

  • Is there any solution for it?

    On Tue, Sep 8, 2009 at 11:40 AM, prashanth hiremath <