TFORMer SDK - JAVA  7.5
DataSourceXml

Overview

DataSourceXml is a specialized DataSource for importing data from XML-Files. This class is used to manipulate existing DataSourceXml objects. To create a new DataSource use TFORMer Designer or Project.addDataSource.

The main properties to characterize a DataSourceXml are:

Modifying an Existing XML DataSource

Sample source code for modifying an existing DataSourceXml:

// Retrieve the global Project
// DataSources are defined in a Project or a global Project
Project project = repository.getGlobalProject ();
// Retrieve the DataSource by name
// Since we know the type of the DataSource, we can cast it to DataSourceXml
DataSourceXml dataSource = (DataSourceXml)project.getDataSource("XML");
// Modify some DataSource properties
dataSource.setXsltFilename(""); // clear XSLT filename

© 2006-2017 - all rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on Fri Nov 3 2017 07:59:13 for TFORMer SDK - JAVA with doxygen 1.8.9.1