Hello,
I want to generate a XML Schema from my model. In my model i used
Java data types (java.util.Date). When starting generating the schema,
EA changes the java data type to string (default).
Why is this happening and how can i fix this issue?
Also i am generating for each package an own xsd but they depend
to each other so i have an <import> Tag in my xsd's. how can i add
the schemaLocation Attribute to the import Tag?
Example:
Generated xsd:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="haft.komposit.datenmodell.svis3g.svi.de" xmlns:xs="
http://www.w3.org/2001/XMLSchema" xmlns:haft="haft.komposit.datenmodell.svis3g.svi.de" xmlns:com="common.datenmodell.svis3g.svi.de" xmlns:komp="komposit.datenmodell.svis3g.svi.de" xmlns:part="partner.datenmodell.svis3g.svi.de" xmlns:dat="datentypen.datenmodell.svis3g.svi.de">
<xs:import namespace="datentypen.datenmodell.svis3g.svi.de"/>
<xs:import namespace="partner.datenmodell.svis3g.svi.de"/>
<xs:import namespace="komposit.datenmodell.svis3g.svi.de"/>
<xs:import namespace="common.datenmodell.svis3g.svi.de"/>
...
Needed xsd:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="haft.komposit.datenmodell.svis3g.svi.de" xmlns:xs="
http://www.w3.org/2001/XMLSchema" xmlns:haft="haft.komposit.datenmodell.svis3g.svi.de" xmlns:com="common.datenmodell.svis3g.svi.de" xmlns:komp="komposit.datenmodell.svis3g.svi.de" xmlns:part="partner.datenmodell.svis3g.svi.de" xmlns:dat="datentypen.datenmodell.svis3g.svi.de">
<xs:import namespace="datentypen.datenmodell.svis3g.svi.de" schemaLocation="datentypen.xsd" />
<xs:import namespace="partner.datenmodell.svis3g.svi.de" schemaLocation="partner.xsd" />
<xs:import namespace="komposit.datenmodell.svis3g.svi.de" schemaLocation="komposit.xsd" />
<xs:import namespace="common.datenmodell.svis3g.svi.de" schemaLocation="common.xsd" />
thx!