I have a requirement that, I have one zip file that contains lots of xml files and I want to append some extra content( xml tags) to some existing xml file in the zip without unzipping it. Could you please tell me the way?
Related
I want to archive and unarchive a whole folder into/from a file. It's similar to compress/uncompress a folder as a zip file. The original folder structure should be preserved.
Here're what I'm trying to do:
- Archive a whole folder into a single archive file.
- Unarchive an archive file to a target folder (i.e extract the file onto another folder)
- Update a file (file content or file name) in the archive file without having to recreate the whole
archive from scratch.
- Delete one or many files or folders (and file within them) from the archive.
It would be much easier if I use external libraries or database for storage. But I need to do those tasks without using any library/tool. Please give me suggestion.
We have a shared drive that users will upload zip files into. Is there a way to directly get the file name and last modified date of the Zip file contents without downloading the file?
Currently, for each file, we download the zip file, extract, get each file name and last modified date, then save it to a table. While it is working, it is extremely slow.
I am hoping for a more efficient way to deal with this.
if i try to upload a file with the default XPages file upload control and save the document everything works with images like jpgs or psd but if you try to upload a docx oder xslx file the server renames it like ATT7ASLO.zip. In the download control the name is displayed correct.
Is there any solution to prevent this?
I think You need to add these file types to the web\file identification section in the name and adressbok. Because docx and xlxs is actually zip files with another mime type.
http://dontpanic82.blogspot.se/2009/06/serving-correct-mime-types-for-office.html
http://www-01.ibm.com/support/docview.wss?uid=swg21412063
I plan to use Saxon for an XSLT problem. I need to run my program on a schedule. When it runs it needs to select all CSV files from a directory. The number of files can be random but once processed they are cleared from the folder by another process. Originally there was only one CSV file with a fixed name so referencing it in the XSLT wasn’t a problem. I could also programmatically set the filename at runtime so all was working well. My XSLT now needs to know about all the files so I can output a single XML. I’m not sure if I can pass in a file path and let the XSLT read in all the files at that location? Is there a command to do this or is there a better way to do this? Remember I don’t know how many CSV files will be in the folder when the XSLT is run.
See www.saxonica.com/documentation/sourcedocs/intro.xml, you can use the collection function to read in files from a directory e.g.
<xsl:for-each select="collection('file:///C:/dir/subdir?select=*.csv;unparsed=yes')/tokenize(., '\n')">
<line><xsl:value-of select="."/></line>
</xsl:for-each>
We need to pull the data from some website using peantho kettle if any one is having some pointers please let me know.
The files are in the zip format in link available on web.
Simple. Create a job that downloads the file from the website.
then create a transform called from the job, which loads the zipped files ( you can use text file input to read zipped text files as they are) and writes them to your db.