> But as it is, this "if" can never be true since pBegin->Name can't be at the > same time = to "JavaDriverClass" and also equal to "CharSet" for example Check the semantics of OUString::compareToAscii(). It returns zero on equality, like strcmp() --tml