2

Closed

JAXB and XMLSPY report that schema fails validation.

description

Hi, I tried to use JAXB to map the schema files to Java classes and I got the validation error below. Then I tried to open xul.xsd in XMLSpy and it also reported the same errors during validation. Is there a way I can fix the schema easily? Thanks, William
 
C:\dev\jdk1.6.0_14\bin>xjc C:\dev\xulschema\xul.xsd
parsing a schema...
[ERROR] ct-props-correct.4: Error for type 'windowElementType'. Duplicate attribute uses with the same name and target namespace are specified. Name of duplicate attribute use is 'align'.
line 1092 of file:/C:/dev/xulschema/xul.xsd
 
[ERROR] ct-props-correct.4: Error for type 'wizardpageElementType'. Duplicate attribute uses with the same name and target namespace are specified. Name of duplicate attribute use is 'align'.
line 1679 of file:/C:/dev/xulschema/xul.xsd
Closed Aug 18, 2012 at 2:51 PM by ondrej_donek
Won't fix.

comments

ondrej_donek wrote Aug 18, 2012 at 2:50 PM

I've tried that and yes error occurs but in Visual Studio or Eclipse IDE works XSD perfectly and becaouse I don't know XJC I am unable to fix it.

wrote Aug 18, 2012 at 2:51 PM

wrote Feb 13, 2013 at 2:12 AM

wrote May 15, 2013 at 2:53 AM