users@jaxb.java.net

Problems parsing the IFX 1.5 Schema

From: Perry, Steve <Steve.Perry_at_fnf.com>
Date: Wed, 6 Oct 2004 11:37:34 -0500

Has anyone used JAXB to generate Java classes for IFX? Specifically
version 1.5?
 
I'm trying to run the IFX 1.5 Schema through xjc (from the command
line), and am getting several errors. They seem to fall into two
categories.
 
There are two of the first type, though the one below is the only one I
saw until I commented out the appropriate line in the schema containing
the "PmtId" reference.
 
[ERROR] cos-nonambig: "":PmtId and "":PmtId (or elements from their
substitution group) violate "Unique Particle Attribution". During
validation against this schema, ambiguity would be created for those two
particles.
  line 12422 of IFX150_XSD.xsd
 
Commenting out the declaration of PmtId in the schema gave the following
error:
 
[ERROR] cos-nonambig: "":CurAmt and "":CurAmt (or elements from their
substitution group) violate "Unique Particle Attribution". During
validation against this schema, ambiguity would be created for those two
particles.
  line 12422 of IFX150_XSD.xsd
 
Commenting out "CurAmt", then yielded a baker's dozen of the second
category, the first of which is:
 
[ERROR] A class/interface with the same name
"com.fnf.xes.ifx.vo.PostAddrType" is already in use. Use a class
customization to resolve this conflict.
  line 11320 of IFX150_XSD.xsd
 
[ERROR] (Relevant to above error) another "PostAddrType" is generated
from here.
  line 11315 of IFX150_XSD.xsd
 
If I had to guess, I'd say that xjc is removing underscores behind the
scenes, which is causing this error. I say this because the definitions
around line 11320 are:
 
11315: <xsd:complexType name="PostAddrType">
11316: <xsd:complexContent>
11317: <xsd:extension base="PostAddr_Type"/>
11318: </xsd:complexContent>
11319: </xsd:complexType>
11320: <xsd:complexType name="PostAddr_Type">
 
Confused? Yeah, me too. The command I'm using is:
 
xjc -d gen-vo -p com.fnf.xes.ifx.vo IFX150_XSD.xsd
 
I'm running Windows XP. I didn't attach the IFX schema because it is
quite large, and if you need to get it, follow this link:
 
http://www.ifxforum.org/ifxforum.org/standards/standard.cfm
 
Click "download" on the 1.5 section, fill out a couple of fields about
yourself and download away.
 
Any help is greatly appreciated. Thanks.
 
Steve Perry
Fidelity Information Services
Email: steve.perry_at_fnf.com