Arbortext Command Language > Repository API > dobj_save
  
dobj_save
dobj_save (dobj, opts[, doc[, ud]])
Saves a document object.
The dobj parameter specifies the ACL document object handle of the object to save. The doc parameter specifies the ACL document handle that contains the document object. If you do not specify a doc, an ACL document will be taken from the dobj, if possible.
The opts parameter is a bitmask that sets the option flags for the saving process. The bits in the opts parameter are:
0x001 = save attributes
0x002 = save content
0x004 = save declarations
0x008 = do not save any processing instructions
0x010 = save nothing, but reorder the entity reference list (even if it hasn't changed)
0x020 = save any modified children (including entities that were edited inline)
The ud parameter can be used to pass user defined information to a callback; strings must match the adapter encoding. Refer to Repository API Callback functions for more information on using callbacks with the Repository API functions.
If the operation fails, the function returns a zero (0). If the operation is successful, the function returns a one (1).
Related Topics
Repository API callback functions