This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
How is (children) supposed to work?
- From: Nic Ferrier <nferrier at tf1 dot tapsellferrier dot co dot uk>
- To: kawa at sources dot redhat dot com
- Date: 15 Jan 2002 22:49:06 +0000
- Subject: How is (children) supposed to work?
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