Purpose | The save statement is used to save a node/object to a file. The save statement is similar to the save method in the Node class. | |||||
Format |
save({file path}, {node name});
{file path} |
the path of the file to which the object will be saved as an XML document-- this is object serialization |
{node name} |
the name of the node/object to be saved |
|
|
Example #1 |
node MyNode {400}; save("C:\\MyDir\\MyFile.xml", "MyNode");
Saves the following XML to the file C:\MyDir\MyFile.xml: |
|||||
Example #2 |
node MyNode { <MyChild>777</MyChild> }; save("C:\\MyDir\\MyFile.xml", $MyNode/MyChild);
Saves the following XML to the file C:\MyDir\MyFile.xml: |