Jump to content

snaggy

Members
  • Posts

    3
  • Joined

  • Last visited

snaggy's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. thanks a lot..!I'd suggest the php developer a more efficient syntax, something like $(".....".$varname."...") so that you can put it all in one sentence!!thanks bye!
  2. I have a loop that should create every n times an array called "arrayname_$n" but how can I declare a variable whose name's a variable?Maybe this all this has no sense.... anyway howelse can I do it?byethx
  3. snaggy

    xpath problem

    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...