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 > -- Tammy Dugan Computer Programmer Regenstrief Institute, Inc. Medical Informatics Health Information and Translational Sciences (HITS) Building 410 West 10th Street, Suite 2000 Indianapolis, IN 46202 Main: 317.423.5500 Fax: 317.423.5695 IU campus mail address: HS, 2000 (317) 423 - 5541 Confidentiality Notice: The contents of this message and any files transmitted with it may contain confidential and/or privileged information and are intended solely for the use of the named addressee(s). Additionally, the information contained herein may have been disclosed to you from medical records with confidentiality protected by federal and state laws. Federal regulations and State laws prohibit you from making further disclosure of such information without the specific written consent of the person to whom the information pertains or as otherwise permitted by such regulations. A general authorization for the release of medical or other information is not sufficient for this purpose. If you have received this message in error, please notify the sender by return e-mail and delete the original message. Any retention, disclosure, copying, distribution or use of this information by anyone other than the intended recipient is strictly prohibited. ------------------------------------------------------------------------- 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.11/909 - Release Date: 20/07/2007 16:39 ------------------------------------------------------------------------- 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