Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Overview

Returns the outer xml of the current node.

string myXml.OuterXml()

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

string myXml.OuterXml(value: string)

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

Example

Get outer xml

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

Example

Update outer xml.

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

See Also

  • No labels