Versions Compared

Key

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

...

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:

  • <process file"... <param name="command" value="cmd.exe " param=" /c echo 'hello world' "/><process file"...
  • <param name="command" value='cmd.exe " param=' /c echo "hello world" '/>
  • <process file"... <param name="command" value="cmd.exe " param=" /c echo &quot;hello&quot; &apos;world&apos; "/>