jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Strasser <tobias.stras...@gmail.com>
Subject Re: PUTing an xml file causes import
Date Wed, 06 Apr 2005 07:31:26 GMT
> i notice that PUTing a file whose name ends with ".xml" causes
> DavResourceImpl.addMember to use the session's xml import feature rather
> than adding a jcr:data property to the new node.
> Angela, do you feel this behavior is required? i think it will be quite
> common for people to want to PUT "opaque" xml files.

hi brian,
i the roundtripping of XML as docview import/export works, this is 
very handy feature. you throw in your xml, this is deserialized on the
repository, thus offering many manipulating  and query features, and
reassembled upon a GET request.

but in general, this might not be a good option, since roundtripping
might not be feasible for some XML document, and some information
might get lost (eg. DTD). as far as i remember, this is kind of a
'demo-feature' and should be configurable.

cheers, tobi
------------------------------------------< tobias.strasser@day.com >---
Tobias Strasser, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97 
-----------------------------------------------< http://www.day.com >---

View raw message