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

Re: CVS update: subversion/subversion/libsvn_wc adm_parse.c Makefile.am adm_files.c wc.h

From: Greg Stein <gstein_at_lyra.org>
Date: 2000-09-09 02:14:26 CEST

On Tue, Sep 05, 2000 at 11:45:25PM -0000, kfogel@tigris.org wrote:
>...
> svn_string_t *
> svn_wc__versions_init_contents (svn_vernum_t version, apr_pool_t *pool)
> {
> svn_string_t *ret;
> const char *part_1 =
> "<wc-versions xmlns=\"http://subversion.tigris.org/xmlns/\">\n"
> " <entry version=\"";
> const char *part_2 =
> "\"/>\n"
> "</wc-versions>\n";
>
> /* Is this lame or what? */
> char buf[1000];
>
> ret = svn_string_create (part_1, pool);
> sprintf (buf, "%ld", (long int) version);
> svn_string_appendbytes (ret, buf, strlen (buf), pool);
> svn_string_appendbytes (ret, part_2, strlen (part_2), pool);
>
> return ret;
> }

Any XML file should begin with the following line:

<?xml version="1.0" encoding="utf-8"?>

That is effectively a necessary component of any XML "document", and these
files are certainly documents. (e.g. standalone units)

[ individual XML fragments won't have this, but at some point you have a
  "document" and that should have it. ]

Note: there will be an impact on concatenating these files into a larger XML
document when this line gets added.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
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.