Overview
...
Xml myXml.AppendChild(xpath: string)
...
Xml myXml.AppendChild(xpath: string, callback: (node: Xml) => any)
Arguments
string xpath
XPath of node to be append
Callback function to be execute.
Remarks
This method creates node and childs nodes according to the xml schema definition. If xml schema definition is not found in xml schema error is thrown.
...
Code Block | ||
---|---|---|
| ||
$Xml.AppendChild('Customers/Customer', function(newNode) \{ newNode.SetValue('Id','1'); \}); |