LabWindows/CVI

CVIXMLGetAttributeName

CVIXMLStatus CVIXMLGetAttributeName (CVIXMLAttribute attribute, char name[]);

Purpose

Gets the name of an attribute.

Parameters

Input
Name Type Description
attribute CVIXMLAttribute The attribute handle must be a valid CVIXMLAttribute.
Output
Name Type Description
name char [] On output, contains the attribute's name. Pass in a buffer large enough to hold the name.

Return Value

Name Type Description
status CVIXMLStatus Indicates whether the function was successful.

A zero indicates success.

You can call CVIXMLGetErrorString to obtain textual descriptions of error codes. Among the more commonly encountered errors are:

E_OUTOFMEMORY Out of memory.
E_INVALIDARG Invalid argument to a function.

Additional Information

Library: CVIXML

Include file: toolbox\cvixml.h

LabWindows/CVI compatibility: LabWindows/CVI 7.0 and later

Examples

Refer to the following examples that use the CVIXMLGetAttributeName function:

  • apps\xmlTree\xmlTree.cws

    Open example
  • toolbox\XMLSample.cws

    Open example