Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need application to change file extension to XML

Status
Not open for further replies.

photoxprt1868

Programmer
Jul 22, 2005
76
0
0
US
Hello,

I need to change hundreds of files from shtml to XML. I'm changing the tags inside through search-and-replace tools but I still need something to change the extension to xml and add the begining and ending tag. Does anybody know of a tool that I can use to do this.

Thank you very much
 
Search google for freeware using for instance "rename utility". Those activities can be done by script as well, but each one does what one can and feel comfortable to go about. Nothing wrong in doing it with small utility.
 
Thank you tsuji, that seemed to have worked well. My biggest challange is yet to come. I need a utility that can read a file and create a new file with a variable inside holding its filename and metta data.

in other words if the HTML file is called myhtml.htm has keywords ="book, glass, pencil"

I need the new file to have variables like this

XML tag...
name: myhtml
keywords: "book, glass, pencil"
XML tag...

Do you know anything like that?

Thank you very much
 
You'll need to write a script to do this. What programming languages do you know? .Net would probably be the easiest.

Jon

"I don't regret this, but I both rue and lament it.
 
I'm affraid that the languages I know will not work in this case. I only know PHP, ASP, Coldfusion. Never gotten around .Net

Any suggestions?
 
You could write a script using any of these to do the job. Just simple file manipulation. You could even write a small web app that could select the file, choose a new file name and keywords and save the new file. Just google for "asp save text file" or something like that. Here's a link to text file manipulation for asp:


Jon

"I don't regret this, but I both rue and lament it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top