Peter Hendry wrote:
>
>
> Aleksander Slominski wrote:
>> Peter Hendry wrote:
>>   
>>> More efficient still would be to keep track of the last '<' and
>>> whether it had a '/' after it - then allow returning past '>' if the
>>> last '<' didn't have a '/' (confused? :-) ).
>>>     
>> not sure if it is going to work with CDATA section (they can contain
>> "unbalanced" XML)
>>   
>
> Why not? It is just an optimization. You can't have CDATA in an end
> tag so you should not go past the '>' of the end tag whether there is
> CDATA or not.
CDATA section can have unbalanced XML so beynd tracking of < and /> you
need to track CDATA sections as well AFACS.

best,

alek
>
> Pete
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED] 


-- 
The best way to predict the future is to invent it - Alan Kay


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to