- Here the sample, how to customize your prepocessing. It is pretty easy. In your pipeline component use a parameter "ConfigFilePath" to point to the configuration file.
Here is the sample of this file. See comments in this file.
<ns0:SymbolReplacer xmlns:ns0="http://GLD.Utils.Configuration/2007-08-16">
 <!--    This configuration file works for SymbolReplacer pipeline component.  --> 
 <!--    Replacemnt works in order:  SimpleReplaces first, RegExs second   --> 
 <!--          SimpleReplace/RegEx records are processed in the segment order: first, second, etc.   -->
 <!--    Simple replacement: [1,n] to [0,m]   --> 
<SimpleReplaces>
 <!--    EXAMPLE: printable symbols "9 " to ""   --> 
<SimpleReplace>
  <Search>9</Search>
  <ReplaceTo />
  </SimpleReplace>
 <!--    EXAMPLE: control symbols (use theHexadecimal notations  --> 
     <!--  Use Hexadecimal for the control symbols like CR LF and symbols prohibited in Xml like ampersand-->
     <SimpleReplace>
  <Search>#xA</Search>
  <ReplaceTo>W</ReplaceTo>
  </SimpleReplace>
</SimpleReplaces>
  <!--    Replacement with RegExes (.NET):    --> 
 <RegExs>
<RegEx>
  <Search>[k-n]</Search>
  <ReplaceTo>-FF-</ReplaceTo>
  </RegEx>
 <RegEx>
  <Search>m</Search>
  <ReplaceTo>Z-</ReplaceTo>
  </RegEx>
  </RegExs>
</ns0:SymbolReplacer>

Last edited Oct 26, 2011 at 4:38 AM by leo_gan, version 6

Comments

No comments yet.