File Open
<xml_file_open>("File path",File handle variable,Root element handle variable)
|
This command opens an Xml file and parses it. If the file content is not valid Xml then the open command fails. The command returns file handle and root element handle (to variables passed as parameters) needed for other operarions.
|
# |
Parameter name |
Parameter description |
1 |
File path |
Xml file path.
|
2 |
File handle variable |
Xml file handle - a unique number that is used as parameter to other commands (for eaxample, to close the Xml file).
|
3 |
Root element handle variable |
Xml root element handle - a unique number that identifies the root element of the Xml file. It is used as input to other commands (for example, to get child elements and traverse the Xml file.
|
|
|
Example (Macro Steps):
|
|
Example (Plain Text):
<#>This macro shows how to open and close an Excel workbook
<cmds>
<excel_wb_open>("","",1,wbi)
<msg>(-100,-100,"A new Excel workbook is open and will be closed now.","Excel Open/Close",1,0,0,0)
<excel_wb_close>(%wbi%,0)