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: j-users-unsubscribe@xxxxxxxxxxxxxxxxx For
> additional commands, e-mail: j-users-help@xxxxxxxxxxxxxxxxx
--
The best way to predict the future is to invent it - Alan Kay
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|