[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: XML format

From: Bob Miller <kbob_at_jogger-egg.com>
Date: 2000-10-04 06:28:00 CEST

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).

kbob_at_jogger-egg.com, http://www.jogger-egg.com/
Received on Sat Oct 21 14:36:10 2006

This is an archived mail posted to the Subversion Dev mailing list.