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="{file path}"> {node name} <save>
| |
{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 name="MyNode">400</node>
<save file="C:\\MyDir\\MyFile.xml> MyNode <save>
Saves the following XML to the file C:\MyDir\MyFile.xml: |
|
Example #2 |
<node name="MyNode"> <MyChild>777</MyChild> </node> <save file="C:\\MyDir\\MyFile.xml> MyNode/MyChild <save>
Saves the following XML to the file C:\MyDir\MyFile.xml: |