just simple, I have such data, thousands of <MigratedData> elements, normally we load them using XMLLoader application, but this is a special case now, I have to update the database myself using the mapping:
<MigratedData>
<migrationNr>12123456</migrationNr> <idOldSystem>33398088801</idOldSystem>
</MigratedData>
<MigratedData>
<migrationNr>6767</migrationNr> <idOldSystem>21100077878</idOldSystem>
</MigratedData>
<MigratedData>
<migrationNr>767066</migrationNr> <idOldSystem>4545566767676</idOldSystem>
</MigratedData>
I will create such SQL Statements:
update table_1 t1 set t1.accountNr =
idOldSystem__Value__from_XML
where t1.id = migrationNr__from__XML ;
Does there exist a simple way to achieve this vis RegExp, preferrably in UltraEdit regular expression engine?
Why not to use simple xslt transformation on your xml and create update script as you specified?
Make your xml like this
And apply XSLT like this:
your result will be