XML refactoring for changing file names to match ID

<oXygen/> general issues.
psbentley
Posts: 20
Joined: Mon Aug 04, 2014 5:18 pm

XML refactoring for changing file names to match ID

Post by psbentley » Fri Feb 14, 2020 8:47 pm

Hi folks,

I need to rename a bunch of files (like 4000) to have the file name match the ID of the file. It's a complicated story, but if I pull these out of the repository to rename and then reupload, the maps won't automatically update and I'm not sure where all these files are used.

Does anyone know how I could use XML refactoring for this? I've tried reverse-engineering the XML refactoring xquery for changing the ID to match the file name but so far no luck.

Thanks in advance,
Peyton

Radu
Posts: 7103
Joined: Fri Jul 09, 2004 5:18 pm

Re: XML refactoring for changing file names to match ID

Post by Radu » Sat Feb 15, 2020 12:28 pm

Dear Peyton,

The XML Refactoring feature in Oxygen allows you to internally change XML documents, not to modify the file names of the XML documents.
So I do not have a solution for you using Oxygen utilities, you will probably need to build some custom processing using a programming language or some custom scripting. Maybe you can google for "change file name depending on content".

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply