On Tue, Nov 03, 2009 at 07:27:47PM +0100, Henrik Sarvell wrote:
> What we need is a test for <item and then some way of
> discarding/ignoring the first ">" when we do subsequent tills. That's
> what I tried to do with an initial (till ">") but it didn't work, like
> this:
> 
> (in "rss.xml"
>   (while
>      (from "<item")
>      (till ">")

That's easy. Try two 'from's in succession:

(in "rss.xml"
  (while
     (from "<item")
     (from ">")

This works both for

   <item>Content</item>

and

   <item bla bla>Content</item>


'from' is the main working tool. As you know, you can also pass several
patterns to 'from' (implicit OR, and the return value can be checked in
a 'case' statement), so this is more flexible.

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

Reply via email to