Arbortext Command Language > Functions by Alphabetical Listing > dom_document
  
dom_document
domId = dom_document ([doc[, interface]])
Creates a new DOM document object for the Arbortext Editor document doc and returns the DOM document object's ID. If doc is omitted, the function uses the returned value of current_doc.
The optional interface parameter specifies the Application Programming Interface that the DOM object will support. If omitted, it defaults to dom L1 V1.0, meaning Version 1.0 of Level 1 of the W3C Document Object Model.
If an error occurs, this function returns the value h::NullDOMId.
After creating a DOM document object with dom_document and finding the object's address with dom_address, the ACL programmer can pass the address to an external dynamically-loaded C++ program using dl_call.
Related Topics
dl_call function
dom_address function
dom_free function
dom_oid function