Jump to content

snaggy

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by snaggy

  1. here my structure<structure> <menu id="main"> <item/> <item/> <item> <menu id="products"> <item/> <item/> </menu> </item> </menu><menu id="second"> <item/> <item> <menu id="buddies"> <item/> </menu> </item> </menu></structure>or something like that...anyway, I want to select through xPath the element menu with specified id (let's say buddies) and all the ancestors menu items, obtaining an array of menus items (composed of items).i tried something like that but it doesn't work:ancestor-or-self:://menu[@id=products]//ancestor-or-self::menu[@id=products]ancestor-or-self::menu//menu[@id=products]what should I do?bye and thanks you all

×
×
  • Create New...