Greg Hudson wrote:
> Second, in addition to putting a bunch of restrictions on the flow of
> editing operations, the hierarchical structure is kind of a pain to
> code to. You have to deal with things like, "okay, this is an
> operation on a new directory entry. What was I just doing? If I had
> just begun a directory, I have to start a <tree-delta> element. If I
> was just working on a file and I haven't seen a text-delta for it yet,
> I have to output a text-delta-ref element, save the reference in the
> file baton, and end that <file> element." This is doable, but it
> would be easier, as well as less restrictive editing producers, if we
> scrapped the hierarchical XML format in favor of something like what I
> proposed yesterday.
Yeah, you need a small state machine in the dir_baton. You also need
to remember to generate all the necessary close tags when you close
directories, or close files (explicitly or implicitly).
Received on Sat Oct 21 14:36:10 2006