Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2007

Tip: Looking for answers? Try searching our database.

Changing file Xtensions & importing

Thread view: 
deepaj87@hotmail.com - 28 Jun 2007 16:48 GMT
Hi!

Firstly, is there a program I can write to go through many subfolders
and change the extension of all the files?  Or if I do that myself,
Is there a way to somehow write a program to seek the XML files, if
they're all in groups separated by folders?  So, have the program get
the 1st file (using an XML map), edit it (by performing macros I've
already written in Excel), save and close, then go get the next
folder?

I have a series of groups of XML files, all following the same XML Map
in Excel, and I want a macro to bring them in, group by group, saving
them as separate files.  I can't seem to figure it out in VB, so maybe
Java will work?

Thanks!
Roedy Green - 28 Jun 2007 21:29 GMT
>Firstly, is there a program I can write to go through many subfolders
>and change the extension of all the files?  Or if I do that myself,
>Is there a way to somehow write a program to seek the XML files, if
>they're all in groups separated by folders?

see http://mindprod.com/jgloss/filter.html

http://mindprod.com/products1.html#FILTER

The key is File.list with a FileFilter to get you just the files that
pass some criteria e.g. endsWith(".xml");

Have a look at Batik for code that recursively scans directories.
When you find files you can delete, rename etc .

http://mindprod.com/products1.html#BATIK
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.