LabWindows/CVI

CVIXMLNewDocument

CVIXMLStatus CVIXMLNewDocument (char *rootElementTag, CVIXMLDocument *document);

Purpose

Creates a new XML document. CVIXMLNewDocument creates a root element for the document with the given tag.

Parameters

Input
Name Type Description
rootElementTag char * The tag of the new root element of the XML document.
Output
Name Type Description
document CVIXMLDocument On output, contains the handle to the document object created in this function. This handle must be discarded using the CVIXMLDiscardDocument function.

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

Log in to get a better experience