This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]