XmlNode.OuterXml
Overview¶
String XmlNode.OuterXml ( [ value ] )
Arguments¶
String value
Outer xml to replace. If not specified no change applied.
Remarks¶
If value specified; this method directly changes the outer xml content without schema definitions. If you need schema based change please use XmlNode.Copy method.
Examples¶
Update outer xml
$Xml.OuterXml('<Customer><Name>John</Name></Customer>');
Get outer xml
var xml = $Xml.SelectSingle('//Customer').OuterXml();