User: Dilip -- 2014-09-29 << 1255 1257 >> |
Hits: 2944 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
I have to map two xml files: File1.xml has correct primary_value, but may have incorrect language value, For example: While first record with primary value Dext is correct along with spanish and english, the second record Prank has bad language values. I have another xml file with corrected values in File2.xml How to update language values of File1.xml by the value from File2.xml |
Input Sample: |
File1.xml <values> <primary_value>Dext</primary_value> <spanish>Dext</spanish> <english>Dext<english></values> <values> <primary_value>Prank</primary_value> <spanish>Pink</spanish> <english>Pank</english></values> File2.xml <values> <primary_value>Prank</primary_value> <spanish>Prink</spanish> <english>Prank</english></values> |
Output Sample: |
<values> <primary_value>Dext</primary_value> <spanish>Dext</spanish> <english>Dext</english></values> <values> <primary_value>Prank</primary_value> <spanish>Prink</spanish> <english>Prank</english></values> |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. ctrl-o open File2.xml 2. ctrl-h open 'replace' dialogue * set 'search for pattern' to: |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |