Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

XML Namespace and PowerShell

$
0
0

I am trying the following:

[[System.Xml.XmlNamespaceManager] $nsm = $meta.NameTable
$nsm.AddNamespace($null, "http://schemas.microsoft.com/ado/2009/11/edm")
$nsm.AddNamespace("edmx", "http://schemas.microsoft.com/ado/2007/06/edmx")
$nsm.AddNamespace("m", "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata")
$meta.DocumentElement.SelectNodes("//edmx:DataServices/Schema[@Namespace='Default']/EntityContainer/FunctionImport", $nsm)

But this doesn't return an nodes. Even when I shorten the XPath expression to just  '//edmx:DataServices' I still don't get anything.

Thank you.

Kevin


Kevin Burton


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>