Ignore Xml-Namespaces in Powershell

Quick and dirty: just remove them before parsing. m(

$xml = New-Object xml
$xml = ([String](Get-Content "file.xml") -replace 'xmlns.*CONFIG">','>' )

Flattr this!

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>