Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Returns the outer xml of the current node or updates outer xml of 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

Update outer xml.

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

Example

Get outer xml

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