Hello,

get an "incompatible types" error which I am now hunting for a few hours, but 
can't resolve.
I installed xmlbeans-2.1.0 and tried the SchemaEnum sample. It works perfectly.
Then I copied the SchemaEnum sample to a new folder in the samples folder and 
started modifying it piece by piece.
And now I get this "incompatible types" error.

    [javac] 
C:\Programme\ApacheSoftwareFoundation\xmlbeans-2.1.0\samples\BookonTravelIt\src\de\bookon\travelit\BookonTravelItTest.java:50:
 incompatible types

 found   : org.apache.xmlbeans.XmlObject[]
 required: de.bookon.lmweb.regionlist.ZIEL[]
         ZIEL[] ziele = root.getZIELArray();

I looked in the created sources folder and found that the method getZIELArray() 
is indeed created returning such a generic object: 
org.apache.xmlbeans.XmlObject[].
When I compare this to the enumeration sample there a comparable method is the 
getLineItemArray() which returns a 
org.apache.xmlbeans.samples.enumeration.schemaenum.easypo.LineItem[] and not 
such a generic object like org.apache.xmlbeans.XmlObject[]

Where can I influence this?
The getZIELArray() method should return an object of type 
de.bookon.lmweb.regionlist.ZIEL[] as the compiler rightful says.

The Schema starts with

<?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema targetNamespace="http://bookon.de/lmweb/regionlist";
    xmlns:xs="http://www.w3.org/2001/XMLSchema";>

Thanks for your help,

Jürgen
_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to