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

DTD changed a bit

From: Ben Collins-Sussman <sussman_at_newton.collab.net>
Date: 2000-09-16 01:07:26 CEST

OK, we have no formal DTD for the XML which "drives" our editor
callbacks, but I should point out that it's changed. (Karl, this
means you need to update all of your test XML files.)

The outermost tag is now <delta-pkg> which contains one <tree-delta>,
followed by zero or more "postfix" <text-deltas>. Text-deltas can now
be either in-line (the old way), postfix (the new way), or any
combination of the two methods.

Postfix text-deltas are specified with a new <text-delta-ref> tag.
The `id' attribute can be any bytestring.

Here's an example.

(this is correctly parsed by libsvn_delta/test/deltaparse-test.c)

<delta-pkg>

  <tree-delta>
    <add name="dir1">
       <dir>
          <tree-delta>
            <add name="file1">
               <file>
                  <text-delta> standard in-line data </text-delta>
               </file>
            </add>
            <add name="file2">
               <file>
                 <text-delta-ref id="foo2"/>
                 <prop-delta>
                      <set name="color">blue</set>
                      <set name="animal">tiger</set>
                 </prop-delta>
               </file>
            </add>
          </tree-delta>
        </dir>
     </add>
     <replace name="file3">
         <file>
              <text-delta-ref id="!@#$%"/>
         </file>
     </replace>
  </tree-delta>

  <text-delta id="foo2"> some file2 data </text-delta>

  <text-delta id="!@#$%"> some file3 data </text-delta>

</delta-pkg>
Received on Sat Oct 21 14:36:08 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.