Skip to content

OuterXml

Returns the outer xml of the current node.

1
myXml.OuterXml():string

Returns the outer xml of the current node or updates outer xml of current node.

1
myXml.OuterXml(value: string):string

Parameters

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 Xml.Copy method.

Get outer xml

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

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

Update outer xml.

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

See Also