(Elementary user)
Hello Everyone,
I would like to replace certain 'forbidden' characters in the values of incoming XML files, namely single quote, double quote and ampersand (I presume < > are not possible due to their use in tags).
My command line looks like this and successfully replaces the & character:
(gc J:\path\to\my\file-in.xml) -replace '&', '&' | Out-File J:\path\to\my\file-out.xml
Is it possible to add additional pairs to find in replace in the same line?
Many thanks
Hello Everyone,
I would like to replace certain 'forbidden' characters in the values of incoming XML files, namely single quote, double quote and ampersand (I presume < > are not possible due to their use in tags).
My command line looks like this and successfully replaces the & character:
(gc J:\path\to\my\file-in.xml) -replace '&', '&' | Out-File J:\path\to\my\file-out.xml
Is it possible to add additional pairs to find in replace in the same line?
Many thanks