| Business Objects and Data Sources > Subnetworks > Loading a Subnetwork Defined in XML |
Loading a Subnetwork Defined in XML |
INDEX
PREVIOUS
NEXT
|
This section shows how to load a subnetwork from an XML file in a data source. For detailed information about data sources, see section Data Sources.
All you have to do is create a data source using the data source default implementation defined by IltDefaultDataSource and pass the XML file to the parse method of the data source, as shown below:
dataSource = new IltDefaultDataSource();
dataSource.parse("SubnetworkXMLFile.xml");
Below is an example of a subnetwork defined in XML format. For details about the XML elements used in this example, see Table 3.1, Elements in an XML Data File.
The example creates a network element with identifier SubNetwork1. This network element is automatically interpreted by the network component as a subnetwork when you add the containment relationship using the XML tag <parent>.
The example creates a network element as a subnetwork that contains two children objects connected by a link.
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. All rights reserved. Legal terms. | PREVIOUS NEXT |