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