Skip to content

XmlNode.InnerXml

Overview

String XmlNode.InnerXml ( [ value ] )
Returns the inner xml of the current node or updates inner xml of current node.

Arguments

String value Inner xml to replace. If not specified no change applied.

Remarks

If value specified; this method directly changes the inner xml content without schema definitions. If you need schema based change please use XmlNode.Copy method.

Examples

Update inner xml

$Xml.InnerXml('<Customer><Name>John</Name></Customer>');

Get inner xml

var xml = $Xml.SelectSingle('//Customer').InnerXml();

See Also