Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Is it possible to call a comand line program from within an Xml File Preprocessor

Is it possible to call a comand line program from within an Xml File Preprocessor

Scheduled Pinned Locked Moved XML / XSL
xmlworkspace
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    ONeil Tomlinson
    wrote on last edited by
    #1

    Is it possible to call a comand line program from within an Xml File Preprocessor. I have a connection string that is encrypted in a settings file and i want to decrypt it before assigning it to the conString value

    <configuration>
    <appSettings>
    <!-- ifdef ${_xml_preprocess} -->
    <!-- <add key="conString" value="${connectionStringWithPassowrd}"/> -->
    <!-- else -->
    <add key="conString" value="connection string"/>
    <!-- endif -->
    </appSettings>
    </configuration>

    C 1 Reply Last reply
    0
    • O ONeil Tomlinson

      Is it possible to call a comand line program from within an Xml File Preprocessor. I have a connection string that is encrypted in a settings file and i want to decrypt it before assigning it to the conString value

      <configuration>
      <appSettings>
      <!-- ifdef ${_xml_preprocess} -->
      <!-- <add key="conString" value="${connectionStringWithPassowrd}"/> -->
      <!-- else -->
      <add key="conString" value="connection string"/>
      <!-- endif -->
      </appSettings>
      </configuration>

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      No. You should write code to decrypt it in a class and use that to access the values.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups