Arbortext Command Language > Functions by Alphabetical Listing > oid_root
  
oid_root
oid_root ([doc])
This function returns the OID of the root element (the first element start tag in a well formed document) in the document. oid_root takes an optional argument, doc, that specifies the identifier of the document tree. If doc is omitted or 0, then the current document is used.
oid_root returns oid_null if the document is not well formed. (For example, if doc is a fragment that has multiple top level elements.)