Must have been asleep when I coded Advanced settings - tidied them up.
error reported in xml