Jonathan,

I'm trying to use the serializer/deserializer in the war file (as indicated below) with xmlbeans version 1.0.3 ... and I get compile errors in XmlBeanSerializer (lines # 85, 251) and in XmlBeanDeserializer (lines #66) because of differences in xmlbeans versions.

Specifically, the errors are because XmlCursor doesn't have the method getDomNode, and XmlObject doesn't have the method selectChildren.

Do you have a recommended workaround/approach ?

Thanks,

Tom Gordon

Jonathan Colwell wrote:

Try this one built and deployed using 1.4.2 after removing the use of
Generics, I just got so used to using them forgot they were another new
1.5 feature.

http://superflaco.com/Beehive/java1dot4XBeanSample.war

Jonathan

-----Original Message-----
From: Jan Galinski [mailto:[EMAIL PROTECTED] Sent: Monday, January 10, 2005 1:36 PM
To: [EMAIL PROTECTED]
Subject: Re: XMLBeanDe/Serializer sample


Jonathan Colwell wrote:


Hi Jan and Karim,

Sorry I wasn't clear, I did everything using Java 1.5 since I mostly work on the Beehive project which makes use of the Annotation feature added in 1.5. I think you can still use the sample if you recompile the XmlBeanSerializer classes using 1.4 since those classes don't use any of the 1.5 features.



Hi Jonathan.

OK. Thanx for pointing that out. I was beginning to doubt my abilty to
press a button.



grab the XmlBean serialization classes from the following location and





compile them with 1.4 and you should be in good shape.

http://svn.apache.org/repos/asf/incubator/beehive/trunk/wsm/src/runtim
e/ org/apache/beehive/wsm/axis/util/encoding/



I did so (did so a while a go when you posted this first). It wont compile on 1.4 because of lines like:

# for (XmlObject kid : children) {

# private static <T extends XmlObject> T[] selectChildren(XmlObject
#       parent,Class<T> childClass)

I guess the first one is 1.5 Syntax for: int i=0; i< size; i++

But what does the second <T> mean? How can I express this with 1.4 Java?


Jan







Reply via email to