apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: opposite of apr_xml_quote_string() ?
Date Tue, 08 Mar 2005 20:20:15 GMT
On Tue, Mar 08, 2005 at 11:41:51AM -0600, Ben Collins-Sussman wrote:
> I'm working on the svn 1.2 "locking" feature, and I've come to a point 
> where mod_dav_svn needs to xml-unescape the incoming comment attached 
> to a DAV lock, so that it ends up being stored in the svn repository as 
> something human-readable.  (For complex reasons, neither httpd nor 
> mod_dav is xml-unescaping the data.)
> 
> I've searched high and low through apr, apr-util, httpd, and svn APIs.  
> I've found apr_xml_quote_string() as a nice way of xml-escaping data, 
> but I've not found anything to xml-unescape.

It's because the XML parser does it automatically; you never normally
get to see the escaped form when parsing the XML.  How complex are these
complex reasons - is the data getting XML-escaped twice, or something?

joe

Mime
View raw message