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

[PATCH] XML DTDs for "svn log" and "svn list" [was: "--xml" option for "svn list", v2]

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2005-01-25 02:49:13 CET

Branko Čibej wrote:
> Julian Foad wrote:
>> The DTD is not included; I'll try to find somewhere to put it.
>
> Try one of:
>
> doc/programmer/xml
> notes/xml
> subversion/clients/cmdline/dtd
>
> The last might actually be best.

Thanks for the suggestion. How about this for a patch?

- Julian

[[[
Add XML DTD files defining the XML output of "svn log" and "svn list".

* subversion/clients/cmdline/dtd: New directory.

* subversion/clients/cmdline/dtd/list.dtd: New file.

* subversion/clients/cmdline/dtd/log.dtd: New file.
]]]

Index: subversion/clients/cmdline/dtd/list.dtd
===================================================================
--- subversion/clients/cmdline/dtd/list.dtd (revision 0)
+++ subversion/clients/cmdline/dtd/list.dtd (revision 0)
@@ -0,0 +1,16 @@
+<!-- XML DTD for Subversion command-line client output. -->
+
+<!-- Common attributes and elements -->
+<!ELEMENT author (#PCDATA)> <!-- user name -->
+<!ELEMENT date (#PCDATA)> <!-- date as "yyyy-mm-ddThh:mm:ss.ssssssZ" -->
+
+<!-- For "svn list" -->
+<!ELEMENT lists (list+)>
+<!ELEMENT list (entry*)>
+<!ATTLIST list path CDATA #REQUIRED> <!-- local path or URL -->
+<!ELEMENT entry (name, size?, commit)>
+<!ATTLIST entry kind (dir | file) #REQUIRED>
+<!ELEMENT name (#PCDATA)> <!-- name of file or directory -->
+<!ELEMENT size (#PCDATA)> <!-- file size in bytes: integer -->
+<!ELEMENT commit (author, date)>
+<!ATTLIST commit revision CDATA #REQUIRED> <!-- revision number: integer -->

Property changes on: subversion/clients/cmdline/dtd/list.dtd
___________________________________________________________________
Name: svn:eol-style
    + native

Index: subversion/clients/cmdline/dtd/log.dtd
===================================================================
--- subversion/clients/cmdline/dtd/log.dtd (revision 0)
+++ subversion/clients/cmdline/dtd/log.dtd (revision 0)
@@ -0,0 +1,16 @@
+<!-- XML DTD for Subversion command-line client output. -->
+
+<!-- Common attributes and elements -->
+<!ELEMENT author (#PCDATA)> <!-- user name -->
+<!ELEMENT date (#PCDATA)> <!-- date as "yyyy-mm-ddThh:mm:ss.ssssssZ" -->
+
+<!-- For "svn log" -->
+<!ELEMENT log (logentry*)>
+<!ELEMENT logentry (author, date, paths?, msg?)>
+<!ATTLIST logentry revision CDATA #REQUIRED> <!-- revision number: integer -->
+<!ELEMENT paths (path*)>
+<!ELEMENT path (#PCDATA)> <!-- path within repository -->
+<!ATTLIST path action CDATA #REQUIRED <!-- action code: one character -->
+ copyfrom-path CDATA #IMPLIED <!-- path within repository -->
+ copyfrom-rev CDATA #IMPLIED> <!-- revision number: integer -->
+<!ELEMENT msg (#PCDATA)> <!-- log message -->

Property changes on: subversion/clients/cmdline/dtd/log.dtd
___________________________________________________________________
Name: svn:eol-style
    + native

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jan 25 02:50:22 2005

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.