java - ct-props-correct error when parsing schema -


I am using a JXAB XJC tool to generate some Java interface files from XSD. I am running into a problem where I am making a mistake of a ton of form:

org.xml.sax.SAXParseException: ct-props-correct.4: error for type 'COCT_MT110200CA.PayeeRole'. The duplicate attribute uses the same name and the target namespace is specified. The name of the duplicate feature is 'nullFlavor'.

The related parts of the schema are as follows:

  & lt; X: complex type name = "COCT_MT110200CA .Holder" & gt; & Lt; XS: Sequence & gt; & Lt; Xs: group ref = "infrastructurewrite aliment" /> & Lt; Xs: element name = "pieirol" type = "cocT_mt110200 ca. drinkerolol" minors = "1" max ockers = "1" & gt; & Lt; / XS: element & gt; & Lt; / XS: sequence & gt; & Lt; Xs: attribute group riff = "infrastructure value" /> & Lt; Xs: attribute name = "null flavor" type = "nullflower" use = "optional" /> & Lt; Xs: attribute name = "type code" type = "interaction type" = "optional" fixed = "hld" /> & Lt; / XS: complexType & gt;  

Where COCT_MT110200CA.PayeeRole is defined as:

  & lt; X: complex type name = "COCT_MT110200CA.PayeeRole" & gt; & Lt; XS: Sequence & gt; & Lt; Xs: group ref = "infrastructurewrite aliment" /> & Lt; Xs: element name = "id" type = "II" minOccurs = "0" maxOccurs = "unbounded" & gt; & Lt; / XS: element & gt; & Lt; XS: Options & gt; & Lt; Xs: element name = "payphone" type = "COCT_MT110200CA.PayeePerson" Nilibble = "true" minOccurs = "0" maxOccurs = "1" & gt; & Lt; / XS: element & gt; & Lt; Xs: element name = "pei organization" type = "cocT_mt110200 ca. drink organization" nilibul = "true" minskers = "0" max ockers = "1" & gt; & Lt; / XS: element & gt; & Lt; / XS: Options & gt; & Lt; / XS: sequence & gt; & Lt; Xs: attribute group riff = "infrastructure value" /> & Lt; Xs: attribute name = "null flavor" type = "nullflower" use = "optional" /> & Lt; Xs: use attribute name = "class code" type = "rollclass" = "optional" fixed = "PAYEE" /> & Lt; / XS: complexType & gt;  

Any ideas? I do not see anything wrong with myself ...

Oh, I think I Understand, there was a pesky attribute group (infrastructure ratios), and nullFlavor was duplicate in that attribute group ...


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -