You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Xiaojie Shen <Xi...@cybercomgroup.com> on 2010/07/05 12:11:34 UTC
Jackrabbit cannot store xml file
Hello
Is it a known issue that jackrabbit cannot save xml file? The file content is empty if I store .xml file. If the file extension is changed to .txt and remove the first row "<?xml version="1.0" encoding="ISO-8859-1"?>", jackrabbit saves the file content.
BR
Xiaojie
RE: Jackrabbit cannot store xml file
Posted by Xiaojie Shen <Xi...@cybercomgroup.com>.
Thank you very much!
Re: Jackrabbit cannot store xml file
Posted by Alexander Klimetschek <ak...@day.com>.
On Mon, Jul 5, 2010 at 12:11, Xiaojie Shen
<Xi...@cybercomgroup.com> wrote:
> Is it a known issue that jackrabbit cannot save xml file? The file content
> is empty if I store .xml file. If the file extension is changed to .txt and
> remove the first row “<?xml version="1.0" encoding="ISO-8859-1"?>”,
> jackrabbit saves the file content.
No, this is a feature of the default webdav servlet, which will import
the XML natively as JCR nodes, which then no longer appear as file
when reading back from webdav (since it is not a nt:file).
See the list archives:
http://jackrabbit.markmail.org/thread/2dyan7mm2wrbsovv (+ responses)
http://markmail.org/message/rg4im42n3h53lt7i
http://markmail.org/message/fakmlpufetwkpck5
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetschek@day.com