On Sun, Nov 01, 2009 at 01:49:59PM +0100, Henrik Sarvell wrote:
> It's a good question with a very simple answer, many many feeds out
> there are completely broken, sometimes they don't conform to
> standards, that's a good scenario but often they have unmatched tags
> or unclosed attributes.

Ouch. I see.

So what do you think about the following:

(while (from "<item>")
   (println                                       # Instead of printing
      (make                                       # do further matching
         (loop
            (NIL (chain (till ">")))              # Collect until next tag
            (char)                                # Skip '>'
            (T (tail '`(chop "item") @)) ) ) ) )  # See if we got <item>

The 'make' will give you smaller chunks of data, which are easier to
'match'.

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Reply via email to