Skip to end of metadata
Go to start of metadata


How can I embed double quotes in job or order parameters?


Double quotes or single quotes are required to enclose xml attributes, therefore you could use single quotes within a double quoted attribute value or vice versa. However, if you have to use both double quotes and single quotes in an attribute value then you should switch to the xml entity names " and ' that would be substituted accordingly:

  • <param name="command" value="cmd.exe /c echo 'hello world' "/>
  • <param name="command" value='cmd.exe /c echo "hello world" '/>
  • <param name="command" value="cmd.exe /c echo &quot;hello&quot; &apos;world&apos; "/>
Write a comment…