Xml.InnerXml
Overview
Returns the inner xml of the current node.
string myXml.InnerXml()
Returns the inner xml of the current node or replaces inner xml of current node.
string myXml.InnerXml(value: string)
Arguments
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.
Example
Get inner xml
var xml = $Xml.SelectSingle('//Customer').InnerXml();
@seeXml.OuterXml
Example
Update inner xml
$Xml.InnerXml('<Customer><Name>John</Name></Customer>');
@seeXml.OuterXml
Copyright © 2010 - 2023 Emakin. All rights reserved.