Kernel 8.0 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

$$ATTRIB^MXMLDOM(): XML—Get First or Next Node Attribute Name

Reference Type: Supported, Category: XML Parser (VistA), ICR#: 3561

Description

The $$ATTRIB^MXMLDOM extrinsic function retrieves the first or next attribute associated with the specified node.

Format

  $$ATTRIB^MXMLDOM(handle,node[,attrib])

Input Parameters

handle:

(required) The value (integer) returned by the $$EN^MXMLDOM API, which created the in-memory document image.

node:

(required) The node (integer) whose attribute name is being retrieved.

attrib:

(optional) The name (string) of the last attribute retrieved by this call. If NULL or missing, the first attribute associated with the specified node is returned. Otherwise, the next attribute in the list is returned.

Output

returns:

Returns:

  • Name (string) of the first or next attribute associated with the specified node.

  • NULL if there are none remaining.