0

We have some web parts deployed in our Sites, which are not working due to Migration from MOSS to SPS2010, and I need to replace the namespace used by power shell by accessing the Webpart's XML..

  • If the answer solved the problem statet in your question, you should mark this answer as accepted answer to help future visitors. – Benny Skogberg Jan 9 '14 at 11:18
1

Try something like this:

$xml = [xml](get-content file.xml)
$xml  = $xml.OuterXml.Replace("xmlns=`"whatever`"", "xmlns=`"new`"")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.