hwISession GetXMLFileHandle

Gets the XML file handle.

Syntax

hwISession_handle GetXMLFileHandledatafile, filename

Application

HyperWorks Tcl Query

Description

This command gets the XML file handle. Note: To test if the file is actually an XML file, IsValid must be called.

Inputs

datafile
The name that you want to call the XML file handle.
filename
The filepath of the file that you want to get the XML handle of. Note: If the filepath has spaces in it, the entire filepath must be within quotes.

Example

hwi GetSessionHandle sess;
sess GetXMLFileHandle XML “c:/Documents and Settings/user/My Documents/hwsettings.xml”;
XML IsValid

Error

Returns success (0) or an error code.

Keywords

HyperWorks

Tcl

XML

Query