Hello all,
I'm totally new to powershell and have the problem detailed below. I've tried Googling round for the answer to this problem, and am not sure if the answer is so simple it simply doesn't rank, or this is in fact more difficult than it looks.\s
What I'm trying to do is strip the values from a dynamic XML file, so I can then dedupe the values and output a tailor made schema to upload to SQL server. Obviously the structure and dynamic nature of the file make using something saner impossible without the schema. I have posted the code and a sample of the XML below, but what I would like to achieve is replacing everything between and including the double quotation marks. To achieve this I was using a find and replace, where the find looked like this: "=`"*`"\s" and replace with this: =
The hope being to turn something similar to this:
Into this:
Except it doesn't. Below is the code, any help would be much appreciated. Thanks,
James
|