I don't see any problem with this binding. Can you show the document that's causing the exception?
- Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Tom Decsi wrote: > Thnx for the reply guys...However I checked Tammy's suggestion, and that > isn't the problem. My generated binding xml looks like this : > > <?xml version="1.0" encoding="UTF-8"?> > <binding> > <mapping name="Configuration" class="com.itinq.config.Configuration"> > <namespace uri="http://www.itinq.com/config" default="elements"/> > <collection name="ApplicationInfo" field="applicationInfo" > item-type="com.itinq.config.ApplicationInfoType"></collection> > </mapping> > <mapping name="ApplicationInfoType" > class="com.itinq.config.ApplicationInfoType"> > <namespace uri="http://www.itinq.com/config" default="elements"/> > <value name="ApplicationName" field="applicationName" usage="optional"/> > <value name="ApplicationVersion" field="applicationVersion" > usage="optional"/> > </mapping> > </binding> > > Like Dennis said, I'd expect jibx to handle a simple scheme like this > without any problems, but unfortunately this isn't the case. > What am I doing wrong here? I already took me two evenings and I can't > figure it out... > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Tammy Dugan > Sent: vrijdag 20 juli 2007 13:39 > To: JiBX users > Subject: Re: [jibx-users] Problem unmarshalling from Xml > > I got the same error when I didn't have the xml elements in the same > order as they were listed in the binding definition. You might check that. > > Tammy > > Dennis Sosnoski wrote: > >> Hi Tom, >> >> You need to show the actual binding definition you're using, which I >> assume you're probably generating with Xsd2Jibx. >> >> The current Xsd2Jibx code is not very reliable, though I'd expect it to >> handle such a simple schema structure without problems. >> >> - Dennis >> >> Dennis M. Sosnoski >> SOA and Web Services in Java >> Training and Consulting >> http://www.sosnoski.com - http://www.sosnoski.co.nz >> Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 >> >> >> >> Tom Decsi wrote: >> >> >>> Recently, I build an xsd model as shown below : >>> >>> <?xml version="1.0" encoding="UTF-8"?> >>> >>> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" >>> xmlns:config="http://www.itinq.com/config" >>> targetNamespace="http://www.itinq.com/config" >>> elementFormDefault="qualified" attributeFormDefault="unqualified"> >>> >>> <xs:element name="Configuration"> >>> >>> <xs:complexType> >>> >>> <xs:sequence> >>> >>> <xs:element name="ApplicationInfo" type="config:ApplicationInfoType" >>> minOccurs="0" maxOccurs="unbounded" /> >>> >>> </xs:sequence> >>> >>> </xs:complexType> >>> >>> </xs:element> >>> >>> <xs:complexType name="ApplicationInfoType"> >>> >>> <xs:sequence> >>> >>> <xs:element name="ApplicationName" type="xs:string" minOccurs="0"/> >>> >>> <xs:element name="ApplicationVersion" type="xs:string" minOccurs="0"/> >>> >>> </xs:sequence> >>> >>> </xs:complexType> >>> >>> </xs:schema> >>> >>> Then I use the Jibx and Ant to create a jar which I include in my web >>> project. >>> >>> The Xml I'm trying to unmarchall looks like this : >>> >>> <?xml version="1.0" encoding="UTF-8"?> >>> >>> <Configuration xmlns="http://www.itinq.com/config"> >>> >>> <ApplicationInfo> >>> >>> <ApplicationName>appname</ApplicationName> >>> >>> <ApplicationVersion>appversion</ApplicationVersion> >>> >>> </ApplicationInfo> >>> >>> </Configuration> >>> >>> However I keep getting the following binding exception when >>> unmarchalling from the xml to the jar classes : >>> >>> Expected ApplicationInfo end tag, found ApplicationName start tag >>> >>> I'm I missing something here? Any help would be highly appreciated. >>> >>> Thank you in advance >>> >>> ------------------------------------------------------------------------ >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2005. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> jibx-users mailing list >>> jibx-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/jibx-users >>> >>> >>> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> jibx-users mailing list >> jibx-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jibx-users >> >> > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users