Download Delve® SOA Fast-Prototyping Toolkit (Beta 1.0)
| Tutorials - How to Save an XML Document for Future Reference |
Page 1 of 2 |
Once an XML document has been generated, it can easily be saved. This document describes how an XML document can be saved in a single line of code.
To persist a document to a file-based store, use a “save” statement, starting with the “save” keyword followed by a variable containing the document instance to be saved.
Let’s say we have a variable “v” that contains a document instance.

It can then be saved for future use like so:

The “save” statement includes specification of retrieval key, in this case “my-retrieval-doc,” that is paired with the saved instance. This key can subsequently be used to obtain the stored instance.
|
|
|