Skip to content

Export data using the ISOXML plugin #104

@fedosinfo

Description

@fedosinfo

Can I export the ADAPT data model to ISOXML format using the ISOXML plugin? I understand that I can read and import data from ISOXML format to the ADAPT data model, but can I write data to ISOXML format from the ADAPT data model?

I found an implementation of the export method, but it looks like this method is private and I can't call this method through the public interface:

void IPlugin.Export(ApplicationDataModel.ADM.ApplicationDataModel dataModel, string exportPath, Properties properties)
{
//Convert the ADAPT model into the ISO model
string outputPath = exportPath.WithTaskDataPath();
TaskDataMapper taskDataMapper = new TaskDataMapper(outputPath, properties);
Errors = taskDataMapper.Errors;
ISO11783_TaskData taskData = taskDataMapper.Export(dataModel);
//Serialize the ISO model to XML
TaskDocumentWriter writer = new TaskDocumentWriter();
writer.WriteTaskData(outputPath, taskData);
//Serialize the Link List
writer.WriteLinkList(outputPath, taskData.LinkList);
}

I will really appreciate if you help me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions