Re: using xml.l

2017-01-16 Thread dean
I thought I was using xml.l since reading yesterday that xm.l was just in for historic reasons sothat's a very good call on your part Alex and sorry for my sloppiness :) and YES it works great! On 16 January 2017 at 20:33, Alexander Burger <a...@software-lab.de> wrote: > On Mon, Jan

Re: using xml.l

2017-01-16 Thread Alexander Burger
On Mon, Jan 16, 2017 at 07:48:52PM +, dean wrote: > When I try to slurp the xml in I get > [fl.xml:1] !DOCTYPE -- Unbalanced XML > > I'm assuming ":1" refers to the second line here... > > Yes, then please try "@lib/xml.l" instead of up "@lib/xm.l". It handles also comments and other

Re: using xml.l

2017-01-16 Thread dean
When I try to slurp the xml in I get [fl.xml:1] !DOCTYPE -- Unbalanced XML I'm assuming ":1" refers to the second line here... I've looked at the xml tree using the firefox plugin "xml developer" and it's indents look pretty uniform from the start to the end so I don'r really know what I'm

Re: using xml.l

2017-01-16 Thread dean
>'read' cannot be used to parse an XML file, because it expects Lisp syntax

Re: using xml.l

2017-01-16 Thread Alexander Burger
On Mon, Jan 16, 2017 at 04:04:18PM +, dean wrote: > I tried this on an xml file and it seems ideal re separating the tags and > data for processing > (in "fl.xml" (until (eof) (prinl (read > > The input is stopping abruptly when I hit an isolated closed paren though 'read' cannot be used

Re: using xml.l

2017-01-16 Thread dean
I tried this on an xml file and it seems ideal re separating the tags and data for processing (in "fl.xml" (until (eof) (prinl (read The input is stopping abruptly when I hit an isolated closed paren though a). which is resulting in Bad input ')' I'm just wondering how best to get

Re: using xml.l

2017-01-16 Thread dean
Thank you very much for that. Best Regards Dean On 16 January 2017 at 14:33, Alexander Burger wrote: > Hi Dean, > > > To get started I thought I'd try to list all the functions in xml.l using > > PL and tried... > > in "/home/me/xml.l" (while (line T) (prinl @))) > > as a

Re: using xml.l

2017-01-16 Thread Alexander Burger
Hi Dean, > To get started I thought I'd try to list all the functions in xml.l using > PL and tried... > in "/home/me/xml.l" (while (line T) (prinl @))) > as a starting point but I'm not sure how you get past the third line which > is blank so Yes, 'line' returns NIL for blank lines, so the

using xml.l contd

2017-01-16 Thread dean
Ok I found some good examples on Rosetta code i.e. https://rosettacode.org/wiki/XML/Input#PicoLisp and see that I have unbalanced xml. I'm just wondering what the best tools to analyse this would be on openbsd.

using xml.l

2017-01-16 Thread dean
To get started I thought I'd try to list all the functions in xml.l using PL and tried... in "/home/me/xml.l" (while (line T) (prinl @))) as a starting point but I'm not sure how you get past the third line which is blank so I reverted to what I know for now :) $ perl -ne'$w='de';print if