Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Make a backup copy of master.xml. Open master.xml. Make it In order for XPath to work we need to make this document well formed. Replace This begins with removing all but the first XML declaration (replace to end, second occurrence of XML declaration (screenshot.)  Add a <wrap> (screenshot2) so Then, add a top-level wrapping tag (i.e. <wrap></wrap> screenshot2) so XPath works, then save file. Select the first work string to replace, right-click and copy XPath, then CTRL+F (screenshot.) Repeat for all work tags. Then replace all item tags using the same method. Then replace all custom metadata tags using the same method, making sure to change the metadata element tag to <dcvalue element="example">. Here's a before and after example of all strings replaced. Replace all <work> with <mm>. Replace all </travel> with </mm>. Remove all <travel>. Remove all </work>. Remove all </item>. Remove all </dublin_core>. Remove all <dublin_core>. Remove all <item>. Replace all </metadata> with </dcvalue>. No need to remove all empty lines.

...