Command Line XML Export

Return to Introduction  Previous page  Next page

Bonsai Outliner for Windows > How Do I ... ? > Export an Outline > Command Line XML Export

The Bonsai Windows application can perform a command line export of an outline to XML. The syntax of the export command is:

 

BONSAI /XMLEXPORT <outline file name> <output file>

 

The entire outline is always exported. All of the outline's attributes, including filters, display columns, expand - collapse state are included in the XML output.  The definition of the format is described in the file "bonsai.dtd" that is installed in the Bonsai application installation directory.

 

The values returned by Bonsai for the export command are as follows.

 

0 - The import was completed without error.
1 - Not able to read the outline file. The file name may be invalid.
3 - Not able to write the output file.  The file name may be invalid.

 

 

The user interface is not displayed when this command line option is used.

 

NoteNote:

Use the full path and extension to the file names on the command line.  Use quotes around file names that include spaces.