473,750 Members | 2,265 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JAXB & Excel 2003

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 "Namespaceu ri" 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 "FullColumn s" 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 "DefaultColumnW idth" 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 "DefaultRowHeig ht" 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
0 1755

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5393
by: jesper | last post by:
Hi I am currently following the tutorial from IBM (http://www-106.ibm.com/developerworks/xml/edu/x-dw-xjaxb-i.html) I have three problems at the moment. 1. It says else where that when the source code files are generated using the XJC, it is possible to compile the generated source code using javac generated\*.java generated\impl\*.java , but this only gives me 97 errors.?
0
2343
by: Mark | last post by:
I'm betting it me. Here is the simple schema I'm using: <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" jaxb:version="1.0"> <xs:annotation> <xs:appinfo>
1
4274
by: Sony Antony | last post by:
We have a situation wherin we should translate the incoming XML based on one schema to the outgoing XML that is based on another schema. Since both input and output are both XML, XSLT was the natural preference. But there was a requirement that demanded a part of the generated XML to be different depending on whether an element was present or not in the incoming XML. Since we were only beginning with XML, we couldn t find the Xpath...
13
5661
by: Christoph Brunner | last post by:
Hi, on the sun homepage i had submit to the bugparade a request for feature enhancement for the JAXB API. After a period of time sun called me to post my request to a newsgroup an get comments from other java developers. So please comment my following request for feature enhancement: If i unmarshall an invalid xml document i got a javax.xml.bind.UnmarshalException: Unexpected end of element
0
2653
by: Brett Selleck | last post by:
We have an issue where the JAXB generated classes are creating an interface which references itself. The Schema is valid, and I have not seen this ran into before. The code is below. What is interesting, is if I change the name of ErrorType to Error the issue goes away. Has anyone else ran into this issue? Do you have a solution? The pertanant part of the schema: <snip>
0
1546
by: Mark | last post by:
I'm betting it me. Here is the simple schema I'm using: <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" jaxb:version="1.0"> <xs:annotation> <xs:appinfo>
1
2198
by: Sipayi | last post by:
'lo! Trying to use JAXB for my project. I did the following steps: a. Created xml/xsd/xjb, placed it under "com.foo.blah" b. xjc'd the xmls into "com.foo.blah.jaxb" c. Tried to unmarshal: -- 1. JAXBContext jc = JAXBContext.newInstance("com.foo.blah.jaxb"); 2. Unmarshaller um = jc.createUnmarshaller(); 3. Object xmlData = unmarshaller.unmarshal(com.foo.blah.SomeClass.class.getResourceAsStream("abc.xml"));
1
1217
by: =?Utf-8?B?U3RlcGhhbmU=?= | last post by:
Hello I would like to know if it is possible to return to MS Excel 2003 after you have upgraded to MS Excel 2007? Here below is what occured. 1. I installed MS Office Home and Student 2007 onto my computer. 2. I no longer see Excel 2003 in my list of programs to choose from,(I had it before). 3. The "Ad-ins" I use do not work with MS Excel 2007 so I would like to go
0
3242
by: malsh1358 | last post by:
Hi I need check required elements and attributes in JAXB java classes , if there are any value for them place it , otherwise place default value in xml file , because of it I upgrade JAXB2.0 to JAXB 2.1 to support "required" in "XmlElement" , I read in "JavaWS(JAXB)Tutorial.pdf" that JAXB itself check required elements and attributes , if there are any value for them place it , otherwise place default value in xml file , the exact part of...
0
9000
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9577
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9339
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8260
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4713
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2804
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2225
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.