Skip to content

InnerXml

Returns the inner XML of the current node.

1
myXml.InnerXml():string

Returns the inner XML of the current node, or replaces the inner XML of the current node with the provided value.

1
myXml.InnerXml(value: string):string

Parameters

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

Returns

The inner XML of the current node. The inner XML of the current node.

Remarks

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

Get inner XML:

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

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

Update inner XML:

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

See Also