I'm not familiar with xmlbeans version 1 since I have worked only with the v2 code base. Is there a particular requirement to use 1.0.3 or are you just using that because it is the release indicated on the xmlbeans site?
The war file I sent out includes an apache-xbean.jar that contains the v2 classes or you can build them from source available at: http://svn.apache.org/repos/asf/xmlbeans/trunk XmlCursor inherits getDomNode from XmlTokenSource which both it and XmlObject extend. http://svn.apache.org/repos/asf/xmlbeans/trunk/src/xmlpublic/org/apache/ xmlbeans/XmlTokenSource.java In this tree, XmlObject does in fact contain selectChildren methods but you are correct that v1 did not have them available as is the case with getDomNode in the token source. the v1 code is here: http://svn.apache.org/repos/asf/xmlbeans/branches/1.x/ so you can compare it to the newer code. cheers, Jonathan -----Original Message----- From: TMG [mailto:[EMAIL PROTECTED] Sent: Friday, January 14, 2005 1:37 PM To: [EMAIL PROTECTED] Subject: Re: XMLBeanDe/Serializer sample 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 > > > >