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 the outer XML of the current node with the provided value.

1
myXml.OuterXml(value: string):string

Parameters¶

string value
    Outer XML to replace the current content. If not specified, no change is applied.

Returns¶

The outer XML of the current node. The outer XML of the current node.

Remarks¶

If a value is specified using Xml.OuterXml, this method directly changes the outer XML content without schema validation. For schema-based changes, use the Xml.Copy method.

Get outer XML:¶

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

If a value is specified, this method directly changes the outer XML content without schema validation. For schema-based changes, use the Xml.Copy method.

Update outer XML:¶

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

See Also¶