Arbortext Command Language > Functions by Alphabetical Listing > modify_attr
  
modify_attr
modify_attr (attrname, value[, doc])
This function sets the attribute attrname to value for the element to the left of the cursor in the document specified by doc. If doc is omitted or 0, the current document is used.
If successful, modify_attr returns 1 (True). If attrname doesn't exist for the element, or the document is read-only, modify_attr returns 0.
modify_attr can be used to assign XML namespace attributes to elements in an XML document.
The function call:
modify_attr(name, value, doc)
is the same as:
oid_modify_attr(oid_current_tag(doc), name, value)
Related Topics
oid_modify_attr built-in function
modify_tag command