By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,823 Members | 756 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,823 IT Pros & Developers. It's quick & easy.

JAXB & Excel 2003

P: n/a
dt
I downloaded Microsoft Office 2003 Reference Schemas from:

http://www.microsoft.com/downloads/d...d=fe118952-354...

Then I tried to use JAXB on them, specifically excel.xsd and
excelss.xsd. The first one passes OK, but doesn't contain Worksheet
element, which is the root element for Excel 2003 documents saved as
XML. The other schema, excelss.xsd, contains the definition of this
element, but doesn't pass through JAXB. The output of:

xjc -p generated excelss.xsd

is:

-------------------- cut here ---------------
parsing a schema...
[ERROR] Property "Name" is already defined.
line 219 of file:/C:/xls/office.xsd

[ERROR] The following location is relevant to the above error
line 204 of file:/C:/xls/office.xsd

[ERROR] Property "Namespaceuri" is already defined.
line 214 of file:/C:/xls/office.xsd

[ERROR] The following location is relevant to the above error
line 199 of file:/C:/xls/office.xsd

[ERROR] Property "Url" is already defined.
line 224 of file:/C:/xls/office.xsd

[ERROR] The following location is relevant to the above error
line 209 of file:/C:/xls/office.xsd

[ERROR] Property "FullColumns" is already defined.
line 590 of file:/C:/xls/excelss.xsd

[ERROR] The following location is relevant to the above error
line 5042 of file:/C:/xls/excel.xsd

[ERROR] Property "FullRows" is already defined.
line 595 of file:/C:/xls/excelss.xsd

[ERROR] The following location is relevant to the above error
line 5047 of file:/C:/xls/excel.xsd

[ERROR] Property "DefaultColumnWidth" is already defined.
line 555 of file:/C:/xls/excelss.xsd

[ERROR] The following location is relevant to the above error
line 5057 of file:/C:/xls/excel.xsd

[ERROR] Property "DefaultRowHeight" is already defined.
line 560 of file:/C:/xls/excelss.xsd

[ERROR] The following location is relevant to the above error
line 5052 of file:/C:/xls/excel.xsd

[ERROR] Property "Fill" is already defined.
line 374 of file:/C:/xls/office.xsd

[ERROR] The following location is relevant to the above error
line 405 of file:/C:/xls/office.xsd

[ERROR] Property "Colors" is already defined.
line 422 of file:/C:/xls/office.xsd

[ERROR] The following location is relevant to the above error
line 429 of file:/C:/xls/office.xsd

[ERROR] Property "Path" is already defined.
line 597 of file:/C:/xls/vml.xsd

[ERROR] The following location is relevant to the above error
line 616 of file:/C:/xls/vml.xsd

[ERROR] Property "Opacity2" is already defined.
line 288 of file:/C:/xls/vml.xsd

[ERROR] The following location is relevant to the above error
line 316 of file:/C:/xls/vml.xsd

[ERROR] Property "Title" is already defined.
line 292 of file:/C:/xls/vml.xsd

[ERROR] The following location is relevant to the above error
line 314 of file:/C:/xls/vml.xsd

[ERROR] Property "Path" is already defined.
line 745 of file:/C:/xls/vml.xsd

[ERROR] The following location is relevant to the above error
line 771 of file:/C:/xls/vml.xsd

[ERROR] Property "Path" is already defined.
line 531 of file:/C:/xls/vml.xsd

[ERROR] The following location is relevant to the above error
line 551 of file:/C:/xls/vml.xsd

[ERROR] Property "Wrapcoords" is already defined.
line 44 of file:/C:/xls/vml.xsd

[ERROR] The following location is relevant to the above error
line 46 of file:/C:/xls/vml.xsd

[ERROR] Property "Path" is already defined.
line 647 of file:/C:/xls/vml.xsd

[ERROR] The following location is relevant to the above error
line 663 of file:/C:/xls/vml.xsd

[ERROR] Property "Spid" is already defined.
line 664 of file:/C:/xls/vml.xsd

[ERROR] The following location is relevant to the above error
line 666 of file:/C:/xls/vml.xsd

[ERROR] Property "Path" is already defined.
line 681 of file:/C:/xls/vml.xsd

[ERROR] The following location is relevant to the above error
line 701 of file:/C:/xls/vml.xsd

[ERROR] Property "Path" is already defined.
line 623 of file:/C:/xls/vml.xsd

[ERROR] The following location is relevant to the above error
line 640 of file:/C:/xls/vml.xsd

[ERROR] Property "Path" is already defined.
line 569 of file:/C:/xls/vml.xsd

[ERROR] The following location is relevant to the above error
line 590 of file:/C:/xls/vml.xsd

[ERROR] Property "Fill" is already defined.
line 198 of file:/C:/xls/vml.xsd

[ERROR] The following location is relevant to the above error
line 207 of file:/C:/xls/vml.xsd

[ERROR] Property "Path" is already defined.
line 711 of file:/C:/xls/vml.xsd

[ERROR] The following location is relevant to the above error
line 729 of file:/C:/xls/vml.xsd

Failed to parse a schema.
-------------------- cut here ---------------

Any ideas?

Feb 15 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.