On Thu, Jul 26, 2007, Tonyrrr Tonyroor wrote:
>    if ((( chaine[i+14] == "twincards>false</twincards")||(chaine[i+14]
> == "twincards>true</twincards"))|| ( chaine[ i+14]== "twincards
> xsi:nil="1"/"))

You're closing one too many sets of parents after the "true"
conditional.  Also, in the third conditional, you need to either escape
the inner quotes or use single quotes:

  "twincards xsi:nil=\"1\"/"
  'twincards xsi:nil="1"/'

You might want to rewrite it for better legibility, too.  A suggestion:

  test = chaine[ i + 14 ]
  if test == 'twincards>false</twincards' or
     test == 'twincards>true</twincards'  or
     test == 'twincards xsi:nil="1"/'

     # do whatever
  end

Ben