Appendix → Search/Replace XML file

The XML file that contains the rules for the Search/Replace procedure has the following structure:

<?xml version="1.0" standalone="yes"?>
<SRRules>
  <TabelVolgorde>
    <Tabnr>4</Tabnr>
    <Description>Table with more dummy rules</Description>
  </TabelVolgorde>
  <TabelVolgorde>
    <Tabnr>2</Tabnr>
    <Description>Table with dummy rules</Description>
  </TabelVolgorde>
  <Rules2>
    <Wildcards>False</Wildcards>
    <Permission>False</Permission>
    <CaseSensitive>False</CaseSensitive>
    <WholeWord>False</WholeWord>
    <Search>^g</Search>
    <Description>Remove all images</Description>
  </Rules2>
  <Rules4>
    <Wildcards>False</Wildcards>
    <Permission>False</Permission>
    <CaseSensitive>False</CaseSensitive>
    <WholeWord>False</WholeWord>
    <Search>^m</Search>
    <Replace>^p</Replace>
    <Description>Reaplce all section and pagebreaks by an paragraph mark</Description>
  </Rules4>
</SRRules>

The XML file contains XML version of various tables. The first table is called TabelVolgorde. That table contains the other table numbers and their description. The order of this table determines the executing order of the rulesets (the other tables). That order can be different than just the number of the ruleset tables. The Rulesettables are named Rulesx where x is the number of the table. The number must be 2 or higher, since the table TabelVolgorde is the first table. Within this table there are 7 fields. The replace field is optional, the others are mandatory. The description of these fields are:

  • Wildcards
    This option specifies if wildcards will be used in the search or replace field. This a very strong feature of Word and strongly resembles Regular Expressions. This cannot be combined with the CaseSensitive and WholeWord option.
  • Permission
    If this is set to ‘True’, permission must be given for each replace.
  • CaseSensitive
    This specifies that the search is case sensitive
  • WholeWord
    This specifies that the search must be regarded as a whole word
  • Search
    The search string. Special characters should be avoided. The editor contains a helper to translate the characters to their code representative.
  • Replace
    The replace string. Special characters should be avoided. The editor contains a helper to translate the characters to their code representative. This is optional.
  • Description
    A description of the rule. This will be depicted during the execution.