Hi again, I tried to solve this problem by running the scomp command twice. Generating two different jar files, one for getitemmaster and one for listitemmaster, and it seems to work. The common parts like codelists, currencycode etc. are included in both jarfiles and thats not so nice. I noticed that it is possible to use a xsdconfig file and i have managed to place GetItemMaster and ListItemMaster in different packages.
It has to be a better solution then the one i have come up with ? Is there a solution to the "Duplicate attribute group" error ? /Regards Krister kris16 wrote: > > Hi, > im trying to use xmlbeans together with OAGS 9.0 and their XSD files. > It seems to work fine when I generate the java code for one XSD file, > GetItemMaster.xsd. > > scomp -verbose -src D:\java\src -out itemmaster.jar > D:\temp\oagis-release-9_0-XSD-GA\OAGIS\9.0\BODs\Standalone\GetItemMaster.xsd > > When I try to generate java code from more than one XSD file then I run > into trubble. > If I add the xsd file "ListItemMaster.xsd" to the command line for scomp > the Java code generation fails. > Probably because both XSD files,GetItemMaster.xsd and ListItemMaster.xsd, > uses the same include files. > > scomp -verbose -src D:\java\src2 -out itemmaster.jar > D:\temp\oagis-release-9_0-XSD-GA\OAGIS\9.0\BODs\Standalone\GetItemMaster.xsd > D:\temp\oagis-release-9_0-XSD-GA\OAGIS\9.0\BODs\Standalone\ListItemMaster.xsd > > I get the following error when I use: > ListItemMaster.xsd:22:9: error: sch-props-correct.2: Duplicate attribute > group: [EMAIL PROTECTED]://www.openapplications.org/oagis/9 > (Original attribute group found in file: GetItemMaster.xsd) > > How can I solve this problem ? > Is there a workaround ? > /Regards Krister > -- View this message in context: http://www.nabble.com/Error-Duplicate-attribute-group-tf2818956.html#a7871978 Sent from the Xml Beans - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]