SetDefaultValue¶
Sets the value of the current node if it is empty.
myXml.SetDefaultValue(value: any):Array<Xml> (Xml)
Sets the values of all nodes at the specified XPath if they are empty.
myXml.SetDefaultValue(xpath: string, value: any):Array<Xml> (Xml)
Parameters¶
any value
The value to update.
string xpath
The XPath of the node to set. If not specified, the current node is used.
Remarks¶
Example¶
1 | |
Updates the current node value¶
1 2 3 | |
Update with an XPath¶
1 | |
Updates the current node value¶
1 2 3 | |
Updates the form submission date if it is empty¶
1 | |
See Also¶
- Xml.SetValue
- Array<Xml>