Commands & Syntax > Commands > Xml Parser >

www.MacroToolworks.com

File Close - < xml_file_close >() ... [Pro]

 

XML File Close
<xml_file_close>(File handle variable)
Available in: Professional edition

This command closes an opened (or created) Xml file.

 

#

Parameter name

Parameter description

1

File handle variable

Xml file handle - an Xml file identifier retrieved from "open xml" or "create xml" commands.

 

Example (Macro Steps):

 

1

<#> <#>This macro shows how to close Xml file

2

Macro execution: ONLY COMMANDS

3

XML File Create vXmlDoc, Root element handle variable = vXmlRoot,Password =

4

XML File Save "vXmlDoc" (File path = "c:\temp\newFile.xml")

5

XML File Close "vXmlDoc"

Example (Plain Text):

 

<#>This macro shows how to close Xml file

<cmds>

<xml_file_create>(vXmlDoc,vXmlRoot)

<xml_file_save>(vXmlDoc,"c:\temp\newFile.xml")

<xml_file_close>(vXmlDoc)