XFolder and XDocInfo
When folders are enabled, an object is added to represent the batch structure. This is called the XFolder (CscXFolder) object. The root object represents the batch and reflects its structure containing all dependent sub folders and documents in a hierarchically of organized folder and document collections. It is typically called the root XFolder. The XDocument is represented by a new object called XDocInfo (CscXDocInfo) that allows basic access to core information of the document without loading the XDocument object itself. Loading the XDocument object may cause performance issues. If an object corresponding to the XDocument object for an XFolder does not exist, the XFolder is fully represented by the XFolder object.
These objects are present regardless of whether or not folders are enabled. If foldering is not enabled the root XFolder does not contain any sub folders and it is not possible to handle batch level fields. Also, the management of the documents like the definition of the sequence is done by its collection of XDocInfos.