Hi!

I am new to Castor.
I've generated Java classes from a complex XML Schema.
I'm now doing some tests for marshalling.

Everything works very fine and exactly like I've been expecting.

There's only one thing I cannot understand.
I have not understood when The Marshaller writes the "xsi:type="..." definition into a tag.

An example:

- <WorkspaceDefinition>
  <WorkspaceType>esriLocalDatabaseWorkspace</WorkspaceType>
  <Version />
  <Domains />
- <DatasetDefinitions>
- <DataElement xsi:type="esri:DEFeatureDataset">
  <CatalogPath>/FD=totoDS</CatalogPath>
  <Name>totoDS</Name>
- <Children>
- <DataElement xsi:type="esri:DEFeatureClass">
  <CatalogPath>/FD=totoDS/FC=toto</CatalogPath>
  <Name>toto</Name>
  <DatasetType>esriDTFeatureClass</DatasetType>
  <DSID>1</DSID>
  <Versioned>false</Versioned>
  <CanVersion>false</CanVersion>
  <HasOID>true</HasOID>
  <OIDFieldName>OBJECTID</OIDFieldName>
- <Fields>
(...)

I do however need the xsi:types defined for every single complextype, and not only for the extended ones:

- <WorkspaceDefinition xsi:type="esri:WorkspaceDefinition">
  <WorkspaceType>esriLocalDatabaseWorkspace</WorkspaceType>
  <Version />
  <Domains xsi:type="esri:ArrayOfDomain" />
- <DatasetDefinitions xsi:type="esri:ArrayOfDataElement">
- <DataElement xsi:type="esri:DEFeatureDataset">
  <CatalogPath>/FD=totoDS</CatalogPath>
  <Name>totoDS</Name>
- <Children xsi:type="esri:ArrayOfDataElement">
- <DataElement xsi:type="esri:DEFeatureClass">
  <CatalogPath>/FD=totoDS/FC=toto</CatalogPath>
  <Name>toto</Name>
  <DatasetType>esriDTFeatureClass</DatasetType>
  <DSID>1</DSID>
  <Versioned>false</Versioned>
  <CanVersion>false</CanVersion>
  <HasOID>true</HasOID>
  <OIDFieldName>OBJECTID</OIDFieldName>
- <Fields xsi:type="esri:Fields">
- (...)


Is there a possibility to define this?
Do I have to write mapping files?
Should I change something in the Descriptors?
Or do I have to modify the sourcecode of the Marshaller?

Thanks in advance for your help!

Jeff

Reply via email to