# eric4.E4XML.SessionWriter

Module implementing the writer class for writing an XML project session file.

### Global Attributes

None

### Classes

SessionWriter | Class implementing the writer class for writing an XML project session file.

### Functions

None

## SessionWriter

Class implementing the writer class for writing an XML project session file.

### Derived from

XMLWriterBase

### Class Attributes

None

### Class Methods

None

### Methods

SessionWriter | Constructor
writeXML | Public method to write the XML to the file.

### Static Methods

None

#### SessionWriter (Constructor)

SessionWriter(file, projectName)

Constructor

file
  open file (like) object for writing
projectName
  name of the project (string) or None for the global session

#### SessionWriter.writeXML

writeXML()

Public method to write the XML to the file.

Up