Apri file XER in Java

This short tutorial explains how to open the file XER in Java. You will get details on how to set up the IDE, a list of steps, and sample code to develop an XER file viewer in Java. Various aspects of the API for controlling the upload of XER files will be discussed.

Steps for XER Reader in Java

  1. Configure the environment to use Aspose.Tasks or Java to load an XER file.
  2. Import all the necessary classes and modules from the library.
  3. Upload the source XER file to the Project object.
  4. Instantiate the ChildTasksCollector object to collect all tasks from the project’s root task recursively.
  5. Iterate over all tasks in the collection.
  6. Visualizza le proprietà desiderate di ogni attività sulla console
  7. Check if the Primavera properties are present for an activity and display the activity ID

The steps above explain how to create an XER viewer in Java. Load the source XER file, collect all recursive tasks from the project’s root task, and display all properties in each task. Check for the existence of PrimaveraTaskProperties for each task and display all target properties from it.

Code for the XER file reader in Java

This code demonstrates the development of a Primavera P6 XER viewer in Java. You can use the PrimaveraReadOptions object in the Project class constructor to skip baseline data, which will speed up the loading process, or set the ProjectUid to load a specific project only if the XER file contains multiple projects.

Questa guida descrive come sviluppare un lettore di file XER. To create an MPP file, see the article Create MPP file in Java.

 Italiano