DataStructureType type = struct.getStructureType();
if (type == DataStructureType.XML) {
// The XML structure info is stored directly in the
// TransformationsTab --> use the key-value pairs
// to store the info:
XmlStructure xml = (XmlStructure) struct;
setProperty(SOURCE_XML, xml.getFilePath());
setProperty(SOURCE_DTD_ROOT, xml.getRootNodeName());
setProperty(DO_SOURCE_XML_VALIDATION, xml.isValidationEnabled());
inputStructure = null;
} else if (type == DataStructureType.JSON) {
JsonStructure json = (JsonStructure) struct;
setProperty(SOURCE_XML, json.getFileName());
setProperty(SOURCE_DTD_ROOT, json.getRootName());