Page 1 of 1

rename xml by content

Posted: 2019-09-03 16:09:49
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.

Re: rename xml by content

Posted: 2019-09-04 10:25:21
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...