[tahoe-lafs-trac-stream] [tahoe-lafs] #1541: Add ?t=xml parameter for getting file statistics
tahoe-lafs
trac at tahoe-lafs.org
Sat Sep 24 17:37:07 PDT 2011
#1541: Add ?t=xml parameter for getting file statistics
--------------------------------+-------------------------------
Reporter: bibilthaysose | Owner: bibilthaysose
Type: enhancement | Status: new
Priority: major | Milestone: eventually
Component: unknown | Version: 1.9.0a1
Keywords: xml file statistic | Launchpad Bug:
--------------------------------+-------------------------------
The best way to programmatically retrieve file statistics is currently
with GET /uri/$PATH?t=json. However, xml has some advantages (such as
xpath, xsl, xsv) over json.
The general consensus seems to be that converting generically between json
and xml is problematic because of things like attributes, cdata and
textual elements. However, I believe that these difficulties are only
encountered when translating richly written xml (that makes use of the
aforementioned artifacts) to json. It seems like going from json to xml
should not carry such difficulties.
There is a library of xsl functions called fxsl which contains a function
called f:json_document(). This would require the libxslt (and libxml2)
module if it were to be used on the server side.
--
Ticket URL: <http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1541>
tahoe-lafs <http://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list