Re: [xml] xmlIO extensions
- From: Morus Walter <morus walter tanto-xipolis de>
- To: xml gnome org
- Subject: Re: [xml] xmlIO extensions
- Date: Thu, 30 Oct 2003 10:02:46 +0100
Daniel Veillard writes:
Why not it seems it would work fine too.
But even better, check how the OpenOffice guys did it and
reuse it if possible !
It's not OpenOffice but there's a virtual file system layer for java
in the apache jakarta project:
http://jakarta.apache.org/commons/sandbox/vfs/
They provide read only access to zip and jar files
http://jakarta.apache.org/commons/sandbox/vfs/filesystems.html#Zip%20and%20Jar
---
URI Format
zip://zip-file-uri[!absolute-path]
jar://zip-file-uri[!absolute-path]
Where zip-file-uri refers to a file of any supported type, including other
zip files. Note that any ! characters in zip-file-uri must be escaped using
%21.
---
Of course one could restrict this to using local files for the zip-file-uri,
but it might be worth considering this syntax.
Regarding OpenOffice, I'm not sure, if they are using URL syntax at all.
Within the *.sxw there's just a META-INF/manifest.xml file listing the
files in the archive just using local names (i.e.
<manifest:file-entry manifest:media-type="text/xml"
manifest:full-path="content.xml"/>)
and (from a user point of view) OpenOffice itself just adresses the archive
as a whole.
But I didn't look at OOs specs or sources.
Morus
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]