How is (children) supposed to work?
Nic Ferrier
nferrier@tf1.tapsellferrier.co.uk
Fri Dec 20 10:36:00 GMT 2002
I'm a bit confused by the details of TreeList. There doesn't seem
to be any easy way (from Scheme or Java) to traverse what's in a tree.
I thought that the doing:
(children some-tree-list)
would return the children of a TreeList but instead it needs to
consume the children of a TreeList.
I'm just not clear about what is going on at all, I tried doing this:
URL u = new URL("file:/home/nferrier/web.xml");
TreeList t = ParsedXMLToConsumer.parse(u);
ListIterator l = t.listIterator();
System.out.println(l.next());
But after a few next() calls the thing hangs. I'm not sure why.
Is there a brief overview anywhere?
Nic
More information about the Kawa
mailing list