Gorgo.Live.ToString()

Mariusz, Gorzoch tech Blog

XmlAttribute & PowerShell

leave a comment »

I was trying today to retrieve attribute value from Powershell and found that for some reason $a.InnerXml, $a.OuterXml, $a.Value is note returning any value. As this is quite wired I started to dig and found the way how the value should be retrieved:

$a.get_OuterXml() or a$.get_InnerXml()

this is wired, but the way above works.

Advertisements

Written by Mariusz Gorzoch

12 March 2010 at 10:01

Posted in Powershell

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: