Arbortext Command Language > Functions by Alphabetical Listing > doc_save
  
doc_save
doc_save ([doc[, flags[, path]]])
This function saves a document. If the doc parameter is 0, the current document is saved. If both the doc and flags parameter is omitted, the current document is saved. If the flags parameter is omitted, no flags are set. If the path parameter is supplied, the document is saved to the file path set in that parameter instead of the current document. A file name must be supplied in this case if saving an XML document as SGML (or vice-versa).
The following flags are allowed:
0x0001 — For documents with change tracking markup, save as if all changes are rejected (original view).
0x0002 — For documents with change tracking markup, save as if all changes are accepted (latest view).
0x0004 — For documents with change tracking markup, save as if all changes are pending (highlighted view).
0x0008 — Write the document as an SGML document.
0x0010 — Write a text-only version of the document.
0x0020 — Write the document as an XML document.
0x0040 — Removes the DOCTYPE header and internal subset, including any private ENTITY declarations.
0x0080 — Removes processing instructions specific to Arbortext Editor.
0x0100 — Enables entity output conversion.
0x0200 — Suppresses entity output conversion.
0x0400 — Writes non-ASCII characters as character entity references.
0x0800 — Writes non-ASCII characters as characters in the target encoding.
0x1000 — Writes non-ASCII characters as numeric character references.
0x2000 — Used internally for HTML output.
0x4000 — Expands all file entities recursively.
0x8000 — Expands all text entities recursively.
0x10000 — Writes a non-fragment header, if possible.
0x20000 — Expands all XInclude references recursively.