Joerg Heinicke wrote:

On 11.03.2004 13:23, Vadim Gritsenko wrote:

startElement a
character 'key'
startElement b
character 'word'

Will become "keyword" instead of "key word". No, this won't work, again :-)
Addition of


^^^^


startElement:
   if (flag)
       x.append(' ');
       flag = false;

Should fix it, shouldn't it?


This game is becoming funny :)

Replace the startElements in your sample with endElements and it won't work. But adding if(flag) like above additionally to endElement should fix this. Did we get it now? :)


Yes, note that I wrote "addition" above - in addition to your suggestion:

characters:
   flag = true;

endElement:
   if (flag)
       x.append(' ');
       flag = false;

So yes, I think now it will work :-)

Vadim



Reply via email to