Using the Designer > Data Formats > Project Files

ILOG JViews Diagrammer project files (.idpr) are XML files. These small files contain a pointer to the style sheet file and a data source specification including a pointer to the XML file or the database connection configuration for a JDBC-compliant database.

Code Sample 5.5 shows an example of a project file when the data source type is XML.

<?xml version="1.0" encoding="UTF-8"?>
<diagrammer style="genealogy-composite.css">
  <datasource class="ilog.views.diagrammer.datasource.IlvXMLDataSource" 
url="genealogy-composite.xml"/>
</diagrammer>

Code Sample 5.5 Project File: XML Data Source

Code Sample 5.6 shows an example of a project file when the data source type is JDBC.

<?xml version="1.0" encoding="UTF-8"?>
<diagrammer style="ArizonaLogical.css">
  <datasource class="ilog.views.diagrammer.datasource.IlvJDBCDataSource">
    <connection driver="sun.jdbc.odbc.JdbcOdbcDriver" id="ID208245264"
      passwd=""
      url="jdbc:odbc:Driver={Microsoft Excel Driver 
(*.xls)};DBQ=C:\Ilog\Repackaging\Builders\jviews-appl-sdm-
builder\data\examples\ArizonaData.xls" user=""/>
    <query connection="ID208245264" links="false" tag="node" value="select 
T1.*, T2.Availability, T2.Throughput from [Sheet1$] as T1, [Sheet2$] as 
T2 where T1.City = T2.City
">
      <map columns="0" property="id"/>
    </query>
    <query connection="ID208245264" links="true" tag="link" value="select * 
from [Sheet3$]">
      <map columns="1" property="to"/>
      <map columns="0" property="from"/>
    </query>
  </datasource>
</diagrammer>

Code Sample 5.6 Project File: JDBC Data Source