rename xml by content

If you need help on how to use the program
Post Reply
Archangel32r
Posts: 1
Joined: 2019-09-03 15:40:38

rename xml by content

Post by Archangel32r »

Hello! I have .xml file (kv_e2b40c17-dfb1-4ce4-8e00-1474805c359c.xml) which contains text (CadastralNumber="32:20:0320105:149"). Can i rename file by CadastralNumber?
Sample:
File: kv_e2b40c17-dfb1-4ce4-8e00-1474805c359c.xml
Text: <Parcel CadastralNumber="32:20:0320105:149" State="01" DateCreated="2007-08-31">
Result: 32_20_0320105_149.xml

P.S. directory contains many files, but but each contains a string <CadastralNumber="__:__:_______:___">
P.S.S. Sorry my bad english. Advance thanks.
antp
Site Admin
Posts: 9664
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: rename xml by content

Post by antp »

Sorry, currently there is no option to extract info from the file contents like that.
It would be useful, though. Some day maybe if I have time for improving it...
Post Reply