JAXB & Excel 2003

Discussion in 'Java' started by dt, Feb 13, 2007.

  1. dt

    dt Guest

    I downloaded Microsoft Office 2003 Reference Schemas from:

    http://www.microsoft.com/downloads/...52-3547-420a-a412-00a2662442d9&displaylang=en

    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?
    dt, Feb 13, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sony Antony

    JAXB, XSLT comparison

    Sony Antony, Jul 17, 2003, in forum: Java
    Replies:
    1
    Views:
    889
    Arto V. Viitanen
    Jul 18, 2003
  2. Brahim Machkour

    JAXB and Arabic encoding

    Brahim Machkour, Jul 25, 2003, in forum: Java
    Replies:
    3
    Views:
    556
    Jon A. Cruz
    Jul 27, 2003
  3. Petterson Mikael

    XML to java using JAXB ?

    Petterson Mikael, Sep 2, 2003, in forum: Java
    Replies:
    0
    Views:
    391
    Petterson Mikael
    Sep 2, 2003
  4. dt

    JAXB & Excel 2003

    dt, Feb 15, 2007, in forum: XML
    Replies:
    0
    Views:
    734
  5. =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?=

    Problem with Excel reports ::::Excel 2003 Migration To Excel 2007

    =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?=, Oct 5, 2007, in forum: ASP .Net
    Replies:
    15
    Views:
    1,481
    =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?=
    Oct 24, 2007
Loading...

Share This Page