Write, Bureaucrats, Administrators
4,332
edits
mNo edit summary |
mNo edit summary |
||
Line 296: | Line 296: | ||
====Save an entry into a file in XML format ==== | ====Save an entry into a file in XML format ==== | ||
The entry includes fields: id , title , date. | The entry includes fields: id , title , date. | ||
<source lang="javascript" | <source lang="javascript"> | ||
var xml = '<record id="' + entry().field("id") + '">' + // Format XML record from the entry field values | var xml = '<record id="' + entry().field("id") + '">' + // Format XML record from the entry field values | ||
'<title>' + entry().field("title") + '</title>' + | '<title>' + entry().field("title") + '</title>' + |