skip to main content
Maps > Developing with design tools > Using the Designer > Data formats > Project files
 
Project files
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.
The following example shows a project file when the data source type is XML.
Project file: XML data source
 
<?xml version="1.0" encoding="UTF-8"?>
<diagrammer style="genealogy-composite.css">
  <datasource class="ilog.views.diagrammer.datasource.IlvXMLDataSource" url="genealogy-composite.xml"/>
</diagrammer>
The following example shows a project file when the data source type is JDBC.
Project file: JDBC data source
<?xml version="1.0" encoding="UTF-8"?>
<diagrammer style="ArizonaLogical.css">
<datasource class="ilog.views.diagrammer.datasource.IlvJDBCDataSource">
<connection driver="org.sqlite.JDBC" id="ID2037536608" passwd=""
url="jdbc:sqlite:data/examples/ArizonaData.db" user=""/>
<query connection="ID2037536608" links="false" mapAllColumns="true" tag="node" value="select T1.*, T2.Availability, T2.Throughput from Population as T1, City as T2 where T1.City = T2.City">
<map columns="0" property="name" requiredType="java.lang.String"/>
<map columns="0" property="id"/>
</query>
<query connection="ID2037536608" links="true" mapAllColumns="true" tag="link" value="select * from Traffic">
<map columns="1" property="to"/>
<map columns="2" property="Traffic"/>
<map columns="0" property="from"/>
</query>
</datasource>
</diagrammer>

Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.