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 inner xml of current node.

1
myXml.InnerXml(value: string):string

Parameters

string value
    Inner xml to replace. If not specified no change applied.

Remarks

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

Get inner xml

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

@see

Xml.OuterXml

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

Update inner xml

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

@see

Xml.OuterXml

See Also