PrimaveraXmlReader

PrimaveraXmlReader class

Represents a reader which allows to retrieve Project UIDs from Primavera Xml file.

public class PrimaveraXmlReader

Constructors

Name Description
PrimaveraXmlReader(Stream) Initializes a new instance of the PrimaveraXmlReader class.
PrimaveraXmlReader(string) Initializes a new instance of the PrimaveraXmlReader class.

Methods

Name Description
GetProjectUids() Return a list of the projects’ unique identifiers.

Examples

Shows how to import a project from a Primavera XML file.

var reader = new PrimaveraXmlReader(DataDir + "primavera.xml");
List<int> projectUids = reader.GetProjectUids();
foreach (var projectUid in projectUids)
{
    Console.WriteLine("Project UID: " + projectUid);
}

See Also