From userjfarmer@example.com Tue Jan 01 04:34:20 2008 Return-Path: <userjfarmer@example.com> Delivered-To: jfarmer@example.com Received: (qmail 54534 invoked from network); 1 Jan 2008 04:34:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Jan 2008 04:34:20 -0000 Received: (qmail 17903 invoked by uid 500); 1 Jan 2008 04:34:08 -0000 Delivered-To: jfarmer@example.com Received: (qmail 17869 invoked by uid 500); 1 Jan 2008 04:34:08 -0000 Mailing-List: contact jfarmer@example.com; run by ezmlm Precedence: bulk List-Post: <mailto:jfarmer@example.com> List-Help: <mailto:jfarmer@example.com> List-Unsubscribe: <mailto:jfarmer@example.com> Reply-To: jfarmer@example.com List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list jfarmer@example.com Received: (qmail 17857 invoked by uid 99); 1 Jan 2008 04:34:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Dec 2007 20:34:08 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO web38005.mail.mud.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 01 Jan 2008 04:33:57 +0000 Received: (qmail 93940 invoked by uid 60001); 1 Jan 2008 04:33:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=vQhutHXMgRH0KCZJ5AcUKEDJBstfEbxhRgyFNFRAMmzSc3z1APju5dIJQq+37f2/jnXF6vMcL+9/YZRvEgM+rR/SU0ubD5ENuqKFGRDQBsc4TJ4/MKX3+bI8iigCcRTxSDzhm+Kl2FHCBNGUCUjoVbdFF6jHG22tpBynfnPjWLg=; X-YMail-OSG: v8XtYbcVM1lFgRDnfJ.WrO9VKC3p3rUs80qe37ycfos4kQ0DdFUMHsE2WNtEMG_YM.fUsNmgCARaJctLAvLFB4KspIXsVsiCzaIraGpCZt2K2R_V0OOwcmsjBr.Xkw-- Received: from [83.161.120.155] by web38005.mail.mud.yahoo.com via HTTP; Mon, 31 Dec 2007 20:33:47 PST Date: Mon, 31 Dec 2007 20:33:47 -0800 (PST) From: dave <jfarmer@example.com> Subject: handling just the Name changes in XSD.. To: jfarmer@example.com In-Reply-To: <jfarmer@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <jfarmer@example.com> X-Virus-Checked: Checked by ClamAV on apache.org If you change an Element name (for e.g.) in the schema, you also need to change the Java code accessing or setting this element. Is there any way we can avoid changing the Java code in such situations? Looks like the xsd config file doesn't seem to have mapping support at this level. -D ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --------------------------------------------------------------------- To unsubscribe, e-mail: jfarmer@example.com For additional commands, e-mail: jfarmer@example.com From userjfarmer@example.com Wed Jan 02 01:35:08 2008 Return-Path: <userjfarmer@example.com> Delivered-To: jfarmer@example.com Received: (qmail 26767 invoked from network); 2 Jan 2008 01:35:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Jan 2008 01:35:08 -0000 Received: (qmail 76378 invoked by uid 500); 2 Jan 2008 01:34:56 -0000 Delivered-To: jfarmer@example.com Received: (qmail 76012 invoked by uid 500); 2 Jan 2008 01:34:56 -0000 Mailing-List: contact jfarmer@example.com; run by ezmlm Precedence: bulk List-Post: <mailto:jfarmer@example.com> List-Help: <mailto:jfarmer@example.com> List-Unsubscribe: <mailto:jfarmer@example.com> Reply-To: jfarmer@example.com List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list jfarmer@example.com Received: (qmail 76001 invoked by uid 99); 2 Jan 2008 01:34:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jan 2008 17:34:55 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO web38009.mail.mud.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 02 Jan 2008 01:34:32 +0000 Received: (qmail 41945 invoked by uid 60001); 2 Jan 2008 01:34:35 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=Xr4fHQV8CPj62knL2t0F9vnHQPXMs1UNmqWVo1EQjNLYvIAUq+M67WZyIrgm5JER/CPKlHy6Af24O5P5w5dpnOmZfgGEaQVQzgyx6q3UojL3EePkrIIM7eUflQC/7hyPUDllafDGlVzsfoch0lewxSWq+nbcITqUS8PtejmUtkI=; X-YMail-OSG: 4s9ozogVM1n9VwHouv5mTHdJJlpbH5VGVBuqAD_7osjiJzq2gtEGMoJE7N15L34bD5tijlAOoLNkpkvXquuQpaaVUTkH.dsZYJXW53Zy06ZAkc361VASTiXh8To9zQ-- Received: from [83.161.120.155] by web38009.mail.mud.yahoo.com via HTTP; Tue, 01 Jan 2008 17:34:35 PST Date: Tue, 1 Jan 2008 17:34:35 -0800 (PST) From: dave <jfarmer@example.com> Subject: when do you need these jars: resolver.jar,etc.. To: jfarmer@example.com In-Reply-To: <jfarmer@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <jfarmer@example.com> X-Virus-Checked: Checked by ClamAV on apache.org I could compile the Schema and run my Java app which uses this schema Jar using only 3 Jars: jsr173_1.0_api.jar xbean.jar xmlbeans-qname.jar Why would I ever need resolver.jar and xmlpublic.jar? I use J2SE 1.4.x -D ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping --------------------------------------------------------------------- To unsubscribe, e-mail: jfarmer@example.com For additional commands, e-mail: jfarmer@example.com From userjfarmer@example.com Wed Jan 02 01:42:27 2008 Return-Path: <userjfarmer@example.com> Delivered-To: jfarmer@example.com Received: (qmail 28046 invoked from network); 2 Jan 2008 01:42:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Jan 2008 01:42:27 -0000 Received: (qmail 78604 invoked by uid 500); 2 Jan 2008 01:42:15 -0000 Delivered-To: jfarmer@example.com Received: (qmail 78582 invoked by uid 500); 2 Jan 2008 01:42:15 -0000 Mailing-List: contact jfarmer@example.com; run by ezmlm Precedence: bulk List-Post: <mailto:jfarmer@example.com> List-Help: <mailto:jfarmer@example.com> List-Unsubscribe: <mailto:jfarmer@example.com> Reply-To: jfarmer@example.com List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list jfarmer@example.com Received: (qmail 78571 invoked by uid 99); 2 Jan 2008 01:42:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jan 2008 17:42:15 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO web38013.mail.mud.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 02 Jan 2008 01:41:52 +0000 Received: (qmail 17162 invoked by uid 60001); 2 Jan 2008 01:41:56 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=q3eP18Lbv6Ax5CMPMib0fnaJ/jJTGS1YOpnnItwp/L90URgnUT3o0NOzLLxCQNRkB8oUnmsGAUMsLTPJeqJKcQbT6BqVH/FvrNpWSI9MIu9T++gKubooU2irgd+uTfiqc+KKX4DLjqmbZ/fUCRC6fC9zreeQ84L3JEvQ5QLxIas=; X-YMail-OSG: tDUtbv0VM1kL3zQS8c4LDJLGFE8h_ri2D4xe3SKX1.Q.Ahw2WJlxpwnFTQEG3T6tdZVhzjPrQ5S_kgHeoSgOBM3temZQT3Mu8wfP.VtfUGYhNLvzTVuIYp0RESoyeA-- Received: from [83.161.120.155] by web38013.mail.mud.yahoo.com via HTTP; Tue, 01 Jan 2008 17:41:55 PST Date: Tue, 1 Jan 2008 17:41:55 -0800 (PST) From: dave <jfarmer@example.com> Subject: Re: when do you need these jars: resolver.jar,etc.. To: jfarmer@example.com In-Reply-To: <jfarmer@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <jfarmer@example.com> X-Virus-Checked: Checked by ClamAV on apache.org i found that resolver.jar s required when catalog is used. i guess if I already use xbean.jar, I may not require jfarmer@example.com. --- dave <jfarmer@example.com> wrote: > > I could compile the Schema and run my Java app which > uses this schema Jar using only 3 Jars: > jsr173_1.0_api.jar xbean.jar xmlbeans-qname.jar > > Why would I ever need resolver.jar and > xmlpublic.jar? ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping --------------------------------------------------------------------- To unsubscribe, e-mail: jfarmer@example.com For additional commands, e-mail: jfarmer@example.com From userjfarmer@example.com Wed Jan 02 16:27:17 2008 Return-Path: <userjfarmer@example.com> Delivered-To: jfarmer@example.com Received: (qmail 82620 invoked from network); 2 Jan 2008 16:27:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Jan 2008 16:27:17 -0000 Received: (qmail 9817 invoked by uid 500); 2 Jan 2008 16:27:05 -0000 Delivered-To: jfarmer@example.com Received: (qmail 9801 invoked by uid 500); 2 Jan 2008 16:27:05 -0000 Mailing-List: contact jfarmer@example.com; run by ezmlm Precedence: bulk List-Post: <mailto:jfarmer@example.com> List-Help: <mailto:jfarmer@example.com> List-Unsubscribe: <mailto:jfarmer@example.com> Reply-To: jfarmer@example.com List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list jfarmer@example.com Received: (qmail 9787 invoked by uid 99); 2 Jan 2008 16:27:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2008 08:27:05 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jfarmer@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO repmmg02.bea.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2008 16:26:55 +0000 Received: from repmmr01.bea.com (repmmr01.bea.com [83.161.120.155]) by repmmg02.bea.com (Switch-3.3.0/Switch-3.2.7) with ESMTP id m02GQk4W006180 for <jfarmer@example.com>; Wed, 2 Jan 2008 08:26:46 -0800 Received: from repbex02.amer.bea.com (repbex02.bea.com [83.161.120.155]) by repmmr01.bea.com (Switch-3.3.0/Switch-3.2.7) with ESMTP id m02GQi65029882 for <jfarmer@example.com>; Wed, 2 Jan 2008 08:26:45 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: RE: when do you need these jars: resolver.jar,etc.. Date: Wed, 2 Jan 2008 08:26:38 -0800 Message-ID: <jfarmer@example.com> In-Reply-To: <jfarmer@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: when do you need these jars: resolver.jar,etc.. Thread-Index: AchM4MASXENAd/u1R0yBdPqWj8BIBwAexQNg From: "Cezar Andrei" <jfarmer@example.com> To: <jfarmer@example.com> x-BEA-PMX-Instructions: AV x-BEA-MM: Internal-To-External X-Virus-Checked: Checked by ClamAV on apache.org Classes in xmlpublic.jar are contained in xbean.jar. xmlpublic.jar can be used for java compilation to make sure an application is not using any private unsupported APIs. Cezar > -----Original Message----- > From: dave [mailto:jfarmer@example.com] > Sent: Tuesday, January 01, 2008 7:42 PM > To: jfarmer@example.com > Subject: Re: when do you need these jars: resolver.jar,etc.. > > i found that resolver.jar s required when catalog is > used. i guess if I already use xbean.jar, I may not > require jfarmer@example.com. > > --- dave <jfarmer@example.com> wrote: > > > > > I could compile the Schema and run my Java app which > > uses this schema Jar using only 3 Jars: > > jsr173_1.0_api.jar xbean.jar xmlbeans-qname.jar > > > > Why would I ever need resolver.jar and > > xmlpublic.jar? > > > > ________________________________________________________________________ __ > __________ > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. > http://tools.search.yahoo.com/newsearch/category.php?category=shopping > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jfarmer@example.com > For additional commands, e-mail: jfarmer@example.com Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. --------------------------------------------------------------------- To unsubscribe, e-mail: jfarmer@example.com For additional commands, e-mail: jfarmer@example.com From userjfarmer@example.com Wed Jan 02 19:24:49 2008 Return-Path: <userjfarmer@example.com> Delivered-To: jfarmer@example.com Received: (qmail 65905 invoked from network); 2 Jan 2008 19:24:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Jan 2008 19:24:46 -0000 Received: (qmail 45026 invoked by uid 500); 2 Jan 2008 19:24:35 -0000 Delivered-To: jfarmer@example.com Received: (qmail 44659 invoked by uid 500); 2 Jan 2008 19:24:34 -0000 Mailing-List: contact jfarmer@example.com; run by ezmlm Precedence: bulk List-Post: <mailto:jfarmer@example.com> List-Help: <mailto:jfarmer@example.com> List-Unsubscribe: <mailto:jfarmer@example.com> Reply-To: jfarmer@example.com List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list jfarmer@example.com Received: (qmail 44648 invoked by uid 99); 2 Jan 2008 19:24:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2008 11:24:34 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO web38002.mail.mud.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 02 Jan 2008 19:24:23 +0000 Received: (qmail 49763 invoked by uid 60001); 2 Jan 2008 19:24:14 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=4PnSlP6UfPDmZ0QcS1Z7rzJwJNLnZMkwalPLTMtGZFO0Txlbn6Gn9C/eUFIJ6fLf0cL1cboFq81aW01WWqtf5qHNJyByiKxTeDQ+aS/aJTfaIkSWI+PlV5CNuG2f5xhJlMGmaweDZyUKzV/OXOiJ7PjChT/jeoOUho6S3Z4+LYY=; X-YMail-OSG: PGaIjWwVM1mXvrAG4mjdoAJB0z_NuShPD_OHzSdHJOH1L1Ajm22.iwmFu4EwiinY_BotDn15vhRH7szdwD9AYBHlipE2ENuVqufJjnfRiTBsI5KTu7U- Received: from [83.161.120.155] by web38002.mail.mud.yahoo.com via HTTP; Wed, 02 Jan 2008 11:24:14 PST Date: Wed, 2 Jan 2008 11:24:14 -0800 (PST) From: dave <jfarmer@example.com> Subject: RE: when do you need these jars: resolver.jar,etc.. To: jfarmer@example.com In-Reply-To: <jfarmer@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <jfarmer@example.com> X-Virus-Checked: Checked by ClamAV on apache.org so, if I use xmlpublic.jar to compile, do I need it during Runtime as well? -D --- Cezar Andrei <jfarmer@example.com> wrote: > Classes in xmlpublic.jar are contained in xbean.jar. > xmlpublic.jar can > be used for java compilation to make sure an > application is not using > any private unsupported APIs. > > Cezar > > > -----Original Message----- > > From: dave [mailto:jfarmer@example.com] > > Sent: Tuesday, January 01, 2008 7:42 PM > > To: jfarmer@example.com > > Subject: Re: when do you need these jars: > resolver.jar,etc.. > > > > i found that resolver.jar s required when catalog > is > > used. i guess if I already use xbean.jar, I may > not > > require jfarmer@example.com. > > > > --- dave <jfarmer@example.com> wrote: > > > > > > > > I could compile the Schema and run my Java app > which > > > uses this schema Jar using only 3 Jars: > > > jsr173_1.0_api.jar xbean.jar > xmlbeans-qname.jar > > > > > > Why would I ever need resolver.jar and > > > xmlpublic.jar? ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs --------------------------------------------------------------------- To unsubscribe, e-mail: jfarmer@example.com For additional commands, e-mail: jfarmer@example.com From userjfarmer@example.com Wed Jan 02 23:05:58 2008 Return-Path: <userjfarmer@example.com> Delivered-To: jfarmer@example.com Received: (qmail 37892 invoked from network); 2 Jan 2008 23:05:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Jan 2008 23:05:58 -0000 Received: (qmail 64978 invoked by uid 500); 2 Jan 2008 23:05:46 -0000 Delivered-To: jfarmer@example.com Received: (qmail 64952 invoked by uid 500); 2 Jan 2008 23:05:46 -0000 Mailing-List: contact jfarmer@example.com; run by ezmlm Precedence: bulk List-Post: <mailto:jfarmer@example.com> List-Help: <mailto:jfarmer@example.com> List-Unsubscribe: <mailto:jfarmer@example.com> Reply-To: jfarmer@example.com List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list jfarmer@example.com Received: (qmail 64940 invoked by uid 99); 2 Jan 2008 23:05:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2008 15:05:46 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO web38004.mail.mud.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 02 Jan 2008 23:05:23 +0000 Received: (qmail 30486 invoked by uid 60001); 2 Jan 2008 23:05:26 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=4Ednk5GARdKtPYEmJQNlb4wudTm+E6m8C1IJBWdzrtHdOFP/KMEf/m0CpjDUicRityBkVOR2/H3t+Wls2jUNzD0Yzi8o06UJ8QaLKitMGTHg8YOri/6orJRLx7ifTblMLZLJ0URBqnGJaeHzbupI/Fc2nFhoGOQNahb+KSFs9gI=; X-YMail-OSG: aV19HGQVM1m4.bIhcIMS8DytYn3SZu2Qd8j6alXG1K8e6cVvhAtxkrVv1yOIlDqDCHPnlkmbFf0MPi18MuX1iz3aepUFkBudqs.24BMdyIip_zSQPXacmc1bRQyynQ-- Received: from [83.161.120.155] by web38004.mail.mud.yahoo.com via HTTP; Wed, 02 Jan 2008 15:05:26 PST Date: Wed, 2 Jan 2008 15:05:26 -0800 (PST) From: dave <jfarmer@example.com> Subject: Re: handling just the Name changes in XSD.. To: jfarmer@example.com In-Reply-To: <jfarmer@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <jfarmer@example.com> X-Virus-Checked: Checked by ClamAV on apache.org can I assume it's one of the drawbacks of XMLBeans where it can't provide configurable mapping between Java and XSD (in terms of element/attribute names and Java methods)? -D --- dave <jfarmer@example.com> wrote: > > If you change an Element name (for e.g.) in the > schema, you also need to change the Java code > accessing or setting this element. Is there any way > we > can avoid changing the Java code in such situations? > Looks like the xsd config file doesn't seem to have > mapping support at this level. > ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping --------------------------------------------------------------------- To unsubscribe, e-mail: jfarmer@example.com For additional commands, e-mail: jfarmer@example.com From userjfarmer@example.com Thu Jan 03 01:08:27 2008 Return-Path: <userjfarmer@example.com> Delivered-To: jfarmer@example.com Received: (qmail 69551 invoked from network); 3 Jan 2008 01:08:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Jan 2008 01:08:25 -0000 Received: (qmail 51886 invoked by uid 500); 3 Jan 2008 01:08:13 -0000 Delivered-To: jfarmer@example.com Received: (qmail 51858 invoked by uid 500); 3 Jan 2008 01:08:13 -0000 Mailing-List: contact jfarmer@example.com; run by ezmlm Precedence: bulk List-Post: <mailto:jfarmer@example.com> List-Help: <mailto:jfarmer@example.com> List-Unsubscribe: <mailto:jfarmer@example.com> Reply-To: jfarmer@example.com List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list jfarmer@example.com Received: (qmail 51847 invoked by uid 99); 3 Jan 2008 01:08:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2008 17:08:13 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO web38005.mail.mud.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 03 Jan 2008 01:07:49 +0000 Received: (qmail 56783 invoked by uid 60001); 3 Jan 2008 01:07:52 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=GcAYOkKCfi6J9CqfrNGK5KAWuQSzy9NPlDH1Ccacg9KkRkhX5NFp59nD1iWWw7KnlWP4P67mHvsl5OaYnGxkVq40fsUBPqqHubfW/ZMQDSnB8O0KotKuDEWLaFr3JIG8Aeg+qIk0BzaGyxFnF5ix3eW/bs+3/y4qZgrHR5hK+Mw=; X-YMail-OSG: DaiP2foVM1kbcjNqyLhmr8iaTvKdYal4PNX7zmvhdx03n.oTY6ID_WXfXpkzbwABrccwoWEU00U2j83kXR7FawNi9sXdmBa6Gf2VnktMITb8grDYviAbJ9jeHfztcg-- Received: from [83.161.120.155] by web38005.mail.mud.yahoo.com via HTTP; Wed, 02 Jan 2008 17:07:52 PST Date: Wed, 2 Jan 2008 17:07:52 -0800 (PST) From: dave <jfarmer@example.com> Subject: how stable is xpath handling in XMLBeans (even a basic expression fails with RunTimeException) To: jfarmer@example.com In-Reply-To: <jfarmer@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <jfarmer@example.com> X-Virus-Checked: Checked by ClamAV on apache.org I was just trying to use count() funtion in a simple Xpath expression and I get this RuntimeException : Exception in thread "main" java.lang.RuntimeException: Trying XBeans path engine... Trying XQRL... Trying Saxon... FAILED on declare namespace ns=.... I see numerous postings from others who had the similar issue and there are no responses indicating any specific solution. Before I waste some more time on this, I just wanted to know if it's even worth using XPath support in XmlBeans. Here's my env: xmlbeans 2.3.0 + all the latest Jars in classpath. The expression having issue: "count($this/ns:root/ns:owners/ns:owner)" I also tried the following but has the similar issue: "count(//ns:owners/ns:owner)" Tried getting all the owner elements (Still the same issue): "$this//ns:owners/ns:owner" But this works: "$this/ns:root/ns:owners/ns:owner" any clues to get this simple crap working!! OR should I switch to Jdom for Xpath processing? -D ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping --------------------------------------------------------------------- To unsubscribe, e-mail: jfarmer@example.com For additional commands, e-mail: jfarmer@example.com From userjfarmer@example.com Thu Jan 03 01:33:13 2008 Return-Path: <userjfarmer@example.com> Delivered-To: jfarmer@example.com Received: (qmail 46841 invoked from network); 3 Jan 2008 01:33:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Jan 2008 01:33:13 -0000 Received: (qmail 67978 invoked by uid 500); 3 Jan 2008 01:33:01 -0000 Delivered-To: jfarmer@example.com Received: (qmail 67962 invoked by uid 500); 3 Jan 2008 01:33:01 -0000 Mailing-List: contact jfarmer@example.com; run by ezmlm Precedence: bulk List-Post: <mailto:jfarmer@example.com> List-Help: <mailto:jfarmer@example.com> List-Unsubscribe: <mailto:jfarmer@example.com> Reply-To: jfarmer@example.com List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list jfarmer@example.com Received: (qmail 67951 invoked by uid 99); 3 Jan 2008 01:33:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2008 17:33:01 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jfarmer@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ro-out-1112.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2008 01:32:39 +0000 Received: by ro-out-1112.google.com with SMTP id k5so961091rog.7 for <jfarmer@example.com>; Wed, 02 Jan 2008 17:32:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=0kD/W5P0GKyvMLMlMrzP6mgIluRirJTA+m4E4vcQglA=; b=B/nDThlX7njOZfVN1jchMsjBOqnNx6PQOkzGyAInwAIlQ/Ee2aXg9SSY2YWrbLaUF54mgjLQq7dukXQWP6AcEp0SCkWlkfugpuBr/lVClpAPaLHQ/t0HJ2I+aFW3DczD8XqDl1YknmfwVT2VyKvOhJGNuLMplCg/6vj73IiLafI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Djh5hMpRUMZ1eVwDxgJ7H2Eio2ukZF/eZrrsqrGDLlaLBaMzf2oOpbeYlSYtVu15y7rvUbNCGvNhrIIBXGGHryJ95nuEXA0BjtmfP4mIFMzrkSv9ZWkJjwKpG+JTf4+Xv55dY4NgzpEuJIl7gC5jyRAguZKcQfQbqkhug45X90U= Received: by 83.161.120.155 with SMTP id m5mr4364593wfi.94.1199323962678; Wed, 02 Jan 2008 17:32:42 -0800 (PST) Received: by 83.161.120.155 with HTTP; Wed, 2 Jan 2008 17:32:42 -0800 (PST) Message-ID: <jfarmer@example.com> Date: Wed, 2 Jan 2008 17:32:42 -0800 From: "Jacob Danner" <jfarmer@example.com> To: jfarmer@example.com Subject: Re: how stable is xpath handling in XMLBeans (even a basic expression fails with RunTimeException) In-Reply-To: <jfarmer@example.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_30402_20521221.1199323962648" References: <jfarmer@example.com> <jfarmer@example.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_30402_20521221.1199323962648 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Do you have saxon8.jar in your classpath when executing these xpath statements? It doesn't look like thats the case. The way XMLBeans handles xpath is to look to see if it can handle the statement internally, and then it looks for available engines on the classpath. It appears to fail when trying to find Saxon. If you don't think this is the case, can you post the whole stacktrace? There is a blurb about Saxon on the website under the 2.3 release news http://xmlbeans.apache.org/ -jacobd On Jan 2, 2008 5:07 PM, dave <jfarmer@example.com> wrote: > > I was just trying to use count() funtion in a simple > Xpath expression and I get this RuntimeException : > Exception in thread "main" > java.lang.RuntimeException: Trying XBeans path > engine... Trying XQRL... Trying Saxon... FAILED on > declare namespace ns=.... > > I see numerous postings from others who had the > similar issue and there are no responses indicating > any specific solution. Before I waste some more time > on this, I just wanted to know if it's even worth > using XPath support in XmlBeans. > > Here's my env: > xmlbeans 2.3.0 + all the latest Jars in classpath. > > The expression having issue: > "count($this/ns:root/ns:owners/ns:owner)" > > I also tried the following but has the similar issue: > "count(//ns:owners/ns:owner)" > > Tried getting all the owner elements (Still the same > issue): > "$this//ns:owners/ns:owner" > But this works: "$this/ns:root/ns:owners/ns:owner" > > any clues to get this simple crap working!! > > OR should I switch to Jdom for Xpath processing? > > -D > > > > ____________________________________________________________________________________ > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. > http://tools.search.yahoo.com/newsearch/category.php?category=shopping > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jfarmer@example.com > For additional commands, e-mail: jfarmer@example.com > > ------=_Part_30402_20521221.1199323962648 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Do you have saxon8.jar in your classpath when executing these xpath statements? It doesn&#39;t look like thats the case.<br>The way XMLBeans handles xpath is to look to see if it can handle the statement internally, and then it looks for available engines on the classpath. It appears to fail when trying to find Saxon. If you don&#39;t think this is the case, can you post the whole stacktrace? <br>There is a blurb about Saxon on the website under the 2.3 release news <br><a href="http://xmlbeans.apache.org/">http://xmlbeans.apache.org/</a><br><br>-jacobd<br><br><div class="gmail_quote">On Jan 2, 2008 5:07 PM, dave &lt; <a href="mailto:jfarmer@example.com">jfarmer@example.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>I was just trying to use count() funtion in a simple <br>Xpath expression and I get this RuntimeException :<br> &nbsp;Exception in thread &quot;main&quot;<br>java.lang.RuntimeException: &nbsp;Trying XBeans path<br>engine... Trying XQRL... Trying Saxon... FAILED on<br>declare namespace ns=.... <br><br>I see numerous postings from others who had the<br>similar issue and there are no responses indicating<br>any specific solution. Before I waste some more time<br>on this, I just wanted to know if it&#39;s even worth <br>using XPath support in XmlBeans.<br><br>Here&#39;s my env:<br>&nbsp;xmlbeans 2.3.0 + all the latest Jars in classpath.<br><br>&nbsp;The expression having issue:<br>&quot;count($this/ns:root/ns:owners/ns:owner)&quot;<br><br>I also tried the following but has the similar issue: <br>&quot;count(//ns:owners/ns:owner)&quot;<br><br>&nbsp;Tried getting all the owner elements (Still the same<br>issue):<br>&nbsp;&quot;$this//ns:owners/ns:owner&quot;<br>But this works: &quot;$this/ns:root/ns:owners/ns:owner&quot; <br><br>any clues to get this simple crap working!!<br><br>OR should I switch to Jdom for Xpath processing?<br><font color="#888888"><br>-D<br></font><div class="WgoR0d"><br><br> &nbsp; &nbsp; &nbsp;____________________________________________________________________________________ <br>Looking for last minute shopping deals?<br>Find them fast with Yahoo! Search. &nbsp;<a href="http://tools.search.yahoo.com/newsearch/category.php?category=shopping" target="_blank">http://tools.search.yahoo.com/newsearch/category.php?category=shopping </a><br><br>---------------------------------------------------------------------<br>To unsubscribe, e-mail: <a href="mailto:jfarmer@example.com">jfarmer@example.com</a><br>For additional commands, e-mail: <a href="mailto:jfarmer@example.com">jfarmer@example.com</a><br><br></div></blockquote></div><br> ------=_Part_30402_20521221.1199323962648-- From userjfarmer@example.com Thu Jan 03 01:38:47 2008 Return-Path: <userjfarmer@example.com> Delivered-To: jfarmer@example.com Received: (qmail 49368 invoked from network); 3 Jan 2008 01:38:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Jan 2008 01:38:46 -0000 Received: (qmail 79981 invoked by uid 500); 3 Jan 2008 01:38:34 -0000 Delivered-To: jfarmer@example.com Received: (qmail 79957 invoked by uid 500); 3 Jan 2008 01:38:34 -0000 Mailing-List: contact jfarmer@example.com; run by ezmlm Precedence: bulk List-Post: <mailto:jfarmer@example.com> List-Help: <mailto:jfarmer@example.com> List-Unsubscribe: <mailto:jfarmer@example.com> Reply-To: jfarmer@example.com List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list jfarmer@example.com Received: (qmail 79946 invoked by uid 99); 3 Jan 2008 01:38:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2008 17:38:34 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO web38013.mail.mud.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 03 Jan 2008 01:38:22 +0000 Received: (qmail 25700 invoked by uid 60001); 3 Jan 2008 01:38:13 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=57u/y0tlpYfyPvIm7IrO+ii24ThGQ91BPvd6DVy5g2Qphw6q430+zva6+CaKHQEtP7Po7IwOEpdK7QMu2oKiJuLFTNFfeFNrIPyqr9eX536wnZrXNZYomDeCIgtJmsubRu4T/As3BvvU95jINT8tSdZhrF7lvd3tvpZDXU5OhXY=; X-YMail-OSG: 4lBQRCgVM1mxI_TkDeSxLkLRhJ.pCkpVC69vhaUFl8AaEZu6mfjkGOwxhXFTFeKCDezSuIiQMXifgwrMnKW9pMAb.2.EcCg9NDhzAPCWJKQAuMC9KQwPUtnP2Y9USA-- Received: from [83.161.120.155] by web38013.mail.mud.yahoo.com via HTTP; Wed, 02 Jan 2008 17:38:13 PST Date: Wed, 2 Jan 2008 17:38:13 -0800 (PST) From: dave <jfarmer@example.com> Subject: Re: how stable is xpath handling in XMLBeans (even a basic expression fails with RunTimeException) To: jfarmer@example.com In-Reply-To: <jfarmer@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <jfarmer@example.com> X-Virus-Checked: Checked by ClamAV on apache.org As per documentation, saxon is required for XQuery. Am only using Xpath. To my understanding, I only need xbean_xpath.jar in addition to regular Jars to do some complex(like predicates,etc) Xpath processing. -D --- Jacob Danner <jfarmer@example.com> wrote: > Do you have saxon8.jar in your classpath when > executing these xpath > statements? It doesn't look like thats the case. > The way XMLBeans handles xpath is to look to see if > it can handle the > statement internally, and then it looks for > available engines on the > classpath. It appears to fail when trying to find > Saxon. If you don't think > this is the case, can you post the whole stacktrace? > There is a blurb about Saxon on the website under > the 2.3 release news > http://xmlbeans.apache.org/ > > -jacobd > > On Jan 2, 2008 5:07 PM, dave <jfarmer@example.com> > wrote: > > > > > I was just trying to use count() funtion in a > simple > > Xpath expression and I get this RuntimeException : > > Exception in thread "main" > > java.lang.RuntimeException: Trying XBeans path > > engine... Trying XQRL... Trying Saxon... FAILED on > > declare namespace ns=.... > > > > I see numerous postings from others who had the > > similar issue and there are no responses > indicating > > any specific solution. Before I waste some more > time > > on this, I just wanted to know if it's even worth > > using XPath support in XmlBeans. > > > > Here's my env: > > xmlbeans 2.3.0 + all the latest Jars in > classpath. > > > > The expression having issue: > > "count($this/ns:root/ns:owners/ns:owner)" > > > > I also tried the following but has the similar > issue: > > "count(//ns:owners/ns:owner)" > > > > Tried getting all the owner elements (Still the > same > > issue): > > "$this//ns:owners/ns:owner" > > But this works: "$this/ns:root/ns:owners/ns:owner" > > > > any clues to get this simple crap working!! > > > > OR should I switch to Jdom for Xpath processing? > > > > -D ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --------------------------------------------------------------------- To unsubscribe, e-mail: jfarmer@example.com For additional commands, e-mail: jfarmer@example.com From userjfarmer@example.com Thu Jan 03 02:07:10 2008 Return-Path: <userjfarmer@example.com> Delivered-To: jfarmer@example.com Received: (qmail 57272 invoked from network); 3 Jan 2008 02:07:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Jan 2008 02:07:10 -0000 Received: (qmail 99748 invoked by uid 500); 3 Jan 2008 02:06:58 -0000 Delivered-To: jfarmer@example.com Received: (qmail 99734 invoked by uid 500); 3 Jan 2008 02:06:58 -0000 Mailing-List: contact jfarmer@example.com; run by ezmlm Precedence: bulk List-Post: <mailto:jfarmer@example.com> List-Help: <mailto:jfarmer@example.com> List-Unsubscribe: <mailto:jfarmer@example.com> Reply-To: jfarmer@example.com List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list jfarmer@example.com Received: (qmail 99723 invoked by uid 99); 3 Jan 2008 02:06:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2008 18:06:58 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jfarmer@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ro-out-1112.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2008 02:06:36 +0000 Received: by ro-out-1112.google.com with SMTP id k5so965947rog.7 for <jfarmer@example.com>; Wed, 02 Jan 2008 18:06:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=aZCdr49xCAZ3utFGKaz2FyNt9di+Lu00sBpL4NtaT34=; b=SEsh0kRcqabU4DXvTWY/srQH1gn1ZKP+RiPYbw0nbPmTy1xkgG8hG3LH3F5zjlP3W5VD8cEg+mcm7mqlcbNatYGoGuRwTEbktVzlUBOLiLqvN1kxjJd3sRdogbUD36ldf7pYhyRimqMoGiP+17g9EUJ7fmHDm8mGvf1yrlA+aws= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=cElYaqWJom8lAuyfzt806+LBXpPGYNofAM9iPEdSdyshumUZEDw1gbZdo8AAZGFBnC+Dyt9gGIy6UqGO6uEGETKKAIH9WGaaVI17CnViHDb6ar8B7+Xdd2NVqw3NuLdE2BiKhc9nkjt2dSEnD8ifxz6qnmzY+Ru0a5748Ngaol0= Received: by 83.161.120.155 with SMTP id v7mr1503692wfd.153.1199326000153; Wed, 02 Jan 2008 18:06:40 -0800 (PST) Received: by 83.161.120.155 with HTTP; Wed, 2 Jan 2008 18:06:40 -0800 (PST) Message-ID: <jfarmer@example.com> Date: Wed, 2 Jan 2008 18:06:40 -0800 From: "Jacob Danner" <jfarmer@example.com> To: jfarmer@example.com Subject: Re: how stable is xpath handling in XMLBeans (even a basic expression fails with RunTimeException) In-Reply-To: <jfarmer@example.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_30488_7396369.1199326000143" References: <jfarmer@example.com> <jfarmer@example.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_30488_7396369.1199326000143 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I've always viewed Xpath as a subset of XQuery. When the statements get too complex for xmlbeans to handle internally, it delegates to the available engine to process. This way XMLBeans does not need to implement an internal xpath engine, but rather can piggy back off the richer, fuller feature set of xquery. The xbean_xpath.jar is the hookup between xmlbeans and the xquery engine. In the 1.x release, it provided the hookup to jaxen. In the 2.x release, it provides the hookup for saxon. -jacobd On Jan 2, 2008 5:38 PM, dave <jfarmer@example.com> wrote: > > As per documentation, saxon is required for XQuery. Am > only using Xpath. To my understanding, I only need > xbean_xpath.jar in addition to regular Jars to do some > complex(like predicates,etc) Xpath processing. > > > -D > > --- Jacob Danner <jfarmer@example.com> wrote: > > > Do you have saxon8.jar in your classpath when > > executing these xpath > > statements? It doesn't look like thats the case. > > The way XMLBeans handles xpath is to look to see if > > it can handle the > > statement internally, and then it looks for > > available engines on the > > classpath. It appears to fail when trying to find > > Saxon. If you don't think > > this is the case, can you post the whole stacktrace? > > There is a blurb about Saxon on the website under > > the 2.3 release news > > http://xmlbeans.apache.org/ > > > > -jacobd > > > > On Jan 2, 2008 5:07 PM, dave <jfarmer@example.com> > > wrote: > > > > > > > > I was just trying to use count() funtion in a > > simple > > > Xpath expression and I get this RuntimeException : > > > Exception in thread "main" > > > java.lang.RuntimeException: Trying XBeans path > > > engine... Trying XQRL... Trying Saxon... FAILED on > > > declare namespace ns=.... > > > > > > I see numerous postings from others who had the > > > similar issue and there are no responses > > indicating > > > any specific solution. Before I waste some more > > time > > > on this, I just wanted to know if it's even worth > > > using XPath support in XmlBeans. > > > > > > Here's my env: > > > xmlbeans 2.3.0 + all the latest Jars in > > classpath. > > > > > > The expression having issue: > > > "count($this/ns:root/ns:owners/ns:owner)" > > > > > > I also tried the following but has the similar > > issue: > > > "count(//ns:owners/ns:owner)" > > > > > > Tried getting all the owner elements (Still the > > same > > > issue): > > > "$this//ns:owners/ns:owner" > > > But this works: "$this/ns:root/ns:owners/ns:owner" > > > > > > any clues to get this simple crap working!! > > > > > > OR should I switch to Jdom for Xpath processing? > > > > > > -D > > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jfarmer@example.com > For additional commands, e-mail: jfarmer@example.com > > ------=_Part_30488_7396369.1199326000143 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I&#39;ve always viewed Xpath as a subset of XQuery.<br><br>When the statements get too complex for xmlbeans to handle internally, it delegates to the available engine to process. This way XMLBeans does not need to implement an internal xpath engine, but rather can piggy back off the richer, fuller feature set of xquery. <br><br>The xbean_xpath.jar is the hookup between xmlbeans and the xquery engine. In the 1.x release, it provided the hookup to jaxen. In the 2.x release, it provides the hookup for saxon.<br><br>-jacobd<br><br><div class="gmail_quote"> On Jan 2, 2008 5:38 PM, dave &lt;<a href="mailto:jfarmer@example.com">jfarmer@example.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <br>As per documentation, saxon is required for XQuery. Am<br>only using Xpath. To my understanding, I only need<br>xbean_xpath.jar in addition to regular Jars to do some<br>complex(like predicates,etc) Xpath processing.<br> <br><br>-D<br><div><div></div><div class="Wj3C7c"><br>--- Jacob Danner &lt;<a href="mailto:jfarmer@example.com">jfarmer@example.com</a>&gt; wrote:<br><br>&gt; Do you have saxon8.jar in your classpath when<br>&gt; executing these xpath <br>&gt; statements? It doesn&#39;t look like thats the case.<br>&gt; The way XMLBeans handles xpath is to look to see if<br>&gt; it can handle the<br>&gt; statement internally, and then it looks for<br>&gt; available engines on the <br>&gt; classpath. It appears to fail when trying to find<br>&gt; Saxon. If you don&#39;t think<br>&gt; this is the case, can you post the whole stacktrace?<br>&gt; There is a blurb about Saxon on the website under<br>&gt; the 2.3 release news<br>&gt; <a href="http://xmlbeans.apache.org/" target="_blank">http://xmlbeans.apache.org/</a><br>&gt;<br>&gt; -jacobd<br>&gt;<br>&gt; On Jan 2, 2008 5:07 PM, dave &lt;<a href="mailto:jfarmer@example.com">jfarmer@example.com </a>&gt;<br>&gt; wrote:<br>&gt;<br>&gt; &gt;<br>&gt; &gt; I was just trying to use count() funtion in a<br>&gt; simple<br>&gt; &gt; Xpath expression and I get this RuntimeException :<br>&gt; &gt; &nbsp;Exception in thread &quot;main&quot; <br>&gt; &gt; java.lang.RuntimeException: &nbsp;Trying XBeans path<br>&gt; &gt; engine... Trying XQRL... Trying Saxon... FAILED on<br>&gt; &gt; declare namespace ns=....<br>&gt; &gt;<br>&gt; &gt; I see numerous postings from others who had the <br>&gt; &gt; similar issue and there are no responses<br>&gt; indicating<br>&gt; &gt; any specific solution. Before I waste some more<br>&gt; time<br>&gt; &gt; on this, I just wanted to know if it&#39;s even worth<br>&gt; &gt; using XPath support in XmlBeans. <br>&gt; &gt;<br>&gt; &gt; Here&#39;s my env:<br>&gt; &gt; &nbsp;xmlbeans 2.3.0 + all the latest Jars in<br>&gt; classpath.<br>&gt; &gt;<br>&gt; &gt; &nbsp;The expression having issue:<br>&gt; &gt; &quot;count($this/ns:root/ns:owners/ns:owner)&quot; <br>&gt; &gt;<br>&gt; &gt; I also tried the following but has the similar<br>&gt; issue:<br>&gt; &gt; &quot;count(//ns:owners/ns:owner)&quot;<br>&gt; &gt;<br>&gt; &gt; &nbsp;Tried getting all the owner elements (Still the<br>&gt; same <br>&gt; &gt; issue):<br>&gt; &gt; &nbsp;&quot;$this//ns:owners/ns:owner&quot;<br>&gt; &gt; But this works: &quot;$this/ns:root/ns:owners/ns:owner&quot;<br>&gt; &gt;<br>&gt; &gt; any clues to get this simple crap working!!<br> &gt; &gt;<br>&gt; &gt; OR should I switch to Jdom for Xpath processing?<br>&gt; &gt;<br>&gt; &gt; -D<br><br><br><br> &nbsp; &nbsp; &nbsp;____________________________________________________________________________________<br></div></div> Be a better friend, newshound, and<br>know-it-all with Yahoo! Mobile. &nbsp;Try it now. &nbsp;<a href="http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ" target="_blank">http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ </a><br><div><div></div><div class="Wj3C7c"><br><br>---------------------------------------------------------------------<br>To unsubscribe, e-mail: <a href="mailto:jfarmer@example.com">jfarmer@example.com </a><br>For additional commands, e-mail: <a href="mailto:jfarmer@example.com">jfarmer@example.com</a><br><br></div></div></blockquote></div><br> ------=_Part_30488_7396369.1199326000143-- From userjfarmer@example.com Thu Jan 03 03:05:31 2008 Return-Path: <userjfarmer@example.com> Delivered-To: jfarmer@example.com Received: (qmail 74417 invoked from network); 3 Jan 2008 03:05:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Jan 2008 03:05:31 -0000 Received: (qmail 39311 invoked by uid 500); 3 Jan 2008 03:05:19 -0000 Delivered-To: jfarmer@example.com Received: (qmail 39298 invoked by uid 500); 3 Jan 2008 03:05:19 -0000 Mailing-List: contact jfarmer@example.com; run by ezmlm Precedence: bulk List-Post: <mailto:jfarmer@example.com> List-Help: <mailto:jfarmer@example.com> List-Unsubscribe: <mailto:jfarmer@example.com> Reply-To: jfarmer@example.com List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list jfarmer@example.com Received: (qmail 39287 invoked by uid 99); 3 Jan 2008 03:05:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2008 19:05:19 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO web38002.mail.mud.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 03 Jan 2008 03:04:55 +0000 Received: (qmail 14137 invoked by uid 60001); 3 Jan 2008 03:04:59 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=OJqZdgErKpKnlk9kp+b0OpaMdghX5sERRBzh31LsI9o90JdbuTzAX1qLKekrQZXKD+9DbxQsNfSIEgVqWEsJzk9napT3BrjA9mls/sSuRVTfeZh7AjpRnt7Gchoguz76Lz3ol+452tiwe2ebTID2U5/wF2AXCceulmnVfvPr0Pc=; X-YMail-OSG: nkJf0gkVM1kgpnVqmKYFZ35hNPle93vguajf6TOngzBqEgwPrWyH3EcjJWesbW6COHb9qjkC1wx1PfSzIGeCp0uy9JIVRmEVPxhjEZQsxRxDd1xbkyXZPnRY3XbeqA-- Received: from [83.161.120.155] by web38002.mail.mud.yahoo.com via HTTP; Wed, 02 Jan 2008 19:04:59 PST Date: Wed, 2 Jan 2008 19:04:59 -0800 (PST) From: dave <jfarmer@example.com> Subject: how to get jdom Document from XmlObject efficiently? To: jfarmer@example.com In-Reply-To: <jfarmer@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <jfarmer@example.com> X-Virus-Checked: Checked by ClamAV on apache.org I have an XmlObject type document object produced out of XmlBeans processing. What is efficient way to convert this XmlObject type to org.jdom.Document ? Thanks -D ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping --------------------------------------------------------------------- To unsubscribe, e-mail: jfarmer@example.com For additional commands, e-mail: jfarmer@example.com From userjfarmer@example.com Thu Jan 03 04:27:14 2008 Return-Path: <userjfarmer@example.com> Delivered-To: jfarmer@example.com Received: (qmail 96786 invoked from network); 3 Jan 2008 04:27:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Jan 2008 04:27:13 -0000 Received: (qmail 89671 invoked by uid 500); 3 Jan 2008 04:27:02 -0000 Delivered-To: jfarmer@example.com Received: (qmail 89663 invoked by uid 500); 3 Jan 2008 04:27:02 -0000 Mailing-List: contact jfarmer@example.com; run by ezmlm Precedence: bulk List-Post: <mailto:jfarmer@example.com> List-Help: <mailto:jfarmer@example.com> List-Unsubscribe: <mailto:jfarmer@example.com> Reply-To: jfarmer@example.com List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list jfarmer@example.com Received: (qmail 89652 invoked by uid 99); 3 Jan 2008 04:27:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2008 20:27:01 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jfarmer@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ro-out-1112.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2008 04:26:39 +0000 Received: by ro-out-1112.google.com with SMTP id k5so990610rog.7 for <jfarmer@example.com>; Wed, 02 Jan 2008 20:26:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=3TDjNnN4g7lubwHx/TJU6BdW8L3BRIQKDG2XUcD4Us8=; b=ODVTJ06yL9trc7qs3i4EsvT1R5eGmkVOkxAtQl+v8xxQMKCePL+wfW5x/Jb3VAuQPANwryTO9gaC18adbskQX+RFyJsY1LURigj5h0yy/UxiKeVSGtZ2dDM1PCEUYUISsQ/zI9q7h8t58TQlt4Q5ucfgv2i7dY3ESURTROKPMdw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=OC3Rav3nT77S1yZlFuxGIouTSjweSIP5y4Cy2MSTlh3S704Wv1jKcs16QpxpnJs9Gmwzjz8mXAGqQ4iGs/8TuuvsbOMN0ph7e2BVdofVXk+0CcATK5NMdCalHG3OmSyTqfCWEWJH8qzuMP+Twl6g6uWOs8xvYbyGNnZxa3fenoM= Received: by 83.161.120.155 with SMTP id u15mr4375818wfd.149.1199334402974; Wed, 02 Jan 2008 20:26:42 -0800 (PST) Received: by 83.161.120.155 with HTTP; Wed, 2 Jan 2008 20:26:42 -0800 (PST) Message-ID: <jfarmer@example.com> Date: Wed, 2 Jan 2008 20:26:42 -0800 From: "Jacob Danner" <jfarmer@example.com> To: jfarmer@example.com Subject: Re: how to get jdom Document from XmlObject efficiently? In-Reply-To: <jfarmer@example.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_30857_26774960.1199334402996" References: <jfarmer@example.com> <jfarmer@example.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_30857_26774960.1199334402996 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline AFAIK there isn't a convenience API to go from XmlObject to JDom Document. However, you can go from XmlObject to org.w3c.dom Node Object using XmlObject.newDomNode(). One thing to note that I particularly enjoy is that XMLBeans provides a DOM2 Level API/Implementation so you can go seamless from DOM <-> XmlCursor <-> XmlObject Once this feature was implemented I stopped using JDom, but I'm sure there is some kind of convenience method to go from org.w3c DOM to JDom. Best of luck, -jacobd On Jan 2, 2008 7:04 PM, dave <jfarmer@example.com> wrote: > > I have an XmlObject type document object produced out > of XmlBeans processing. What is efficient way to > convert this XmlObject type to org.jdom.Document ? > > Thanks > -D > > > > ____________________________________________________________________________________ > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. > http://tools.search.yahoo.com/newsearch/category.php?category=shopping > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jfarmer@example.com > For additional commands, e-mail: jfarmer@example.com > > ------=_Part_30857_26774960.1199334402996 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline AFAIK there isn&#39;t a convenience API to go from XmlObject to JDom Document. However, you can go from XmlObject to org.w3c.dom Node Object using XmlObject.newDomNode(). One thing to note that I particularly enjoy is that XMLBeans provides a DOM2 Level API/Implementation so you can go seamless from <br>DOM &lt;-&gt;&nbsp; XmlCursor &lt;-&gt; XmlObject<br>Once this feature was implemented I stopped using JDom, but I&#39;m sure there is some kind of convenience method to go from org.w3c DOM to JDom.<br>Best of luck,<br>-jacobd <br><br><br><br><div class="gmail_quote">On Jan 2, 2008 7:04 PM, dave &lt;<a href="mailto:jfarmer@example.com">jfarmer@example.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <br>I have an XmlObject type document object produced out<br>of XmlBeans processing. What is efficient way to<br>convert this &nbsp;XmlObject type to org.jdom.Document ?<br><br>Thanks<br><font color="#888888">-D<br></font><div class="WgoR0d"> <br><br> &nbsp; &nbsp; &nbsp;____________________________________________________________________________________<br>Looking for last minute shopping deals?<br>Find them fast with Yahoo! Search. &nbsp;<a href="http://tools.search.yahoo.com/newsearch/category.php?category=shopping" target="_blank"> http://tools.search.yahoo.com/newsearch/category.php?category=shopping</a><br><br>---------------------------------------------------------------------<br>To unsubscribe, e-mail: <a href="mailto:jfarmer@example.com"> jfarmer@example.com</a><br>For additional commands, e-mail: <a href="mailto:jfarmer@example.com">jfarmer@example.com</a><br><br></div></blockquote></div><br> ------=_Part_30857_26774960.1199334402996-- From userjfarmer@example.com Fri Jan 04 15:47:01 2008 Return-Path: <userjfarmer@example.com> Delivered-To: jfarmer@example.com Received: (qmail 34220 invoked from network); 4 Jan 2008 15:47:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Jan 2008 15:47:01 -0000 Received: (qmail 43720 invoked by uid 500); 4 Jan 2008 15:46:48 -0000 Delivered-To: jfarmer@example.com Received: (qmail 43704 invoked by uid 500); 4 Jan 2008 15:46:48 -0000 Mailing-List: contact jfarmer@example.com; run by ezmlm Precedence: bulk List-Post: <mailto:jfarmer@example.com> List-Help: <mailto:jfarmer@example.com> List-Unsubscribe: <mailto:jfarmer@example.com> Reply-To: jfarmer@example.com List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list jfarmer@example.com Received: (qmail 43693 invoked by uid 99); 4 Jan 2008 15:46:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2008 07:46:48 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO fluffy.torchbox.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2008 15:46:38 +0000 Received: from [888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4] by fluffy.torchbox.com with esmtp (Exim 4.63) (envelope-from <jfarmer@example.com>) id 1JAokg-0006Ge-Kd for jfarmer@example.com; Fri, 04 Jan 2008 15:46:30 +0000 Date: Fri, 4 Jan 2008 15:44:25 +0000 (GMT) From: Nick Burch <jfarmer@example.com> X-X-Sender: jfarmer@example.com To: jfarmer@example.com Subject: Tracking the source of beans, to make writing out easier? Message-ID: <jfarmer@example.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Spam-Score: -0.7 (/) Organization: Torchbox Ltd, Registered Company #3983354, Unit 9, Southill Business Park, OX7 3EW, UK X-Virus-Checked: Checked by ClamAV on apache.org Hi All We're experimenting with using xmlbeans for Apache POI, to help with the processing of ooxml files. To do this, we've used xmlbeans to generate classes from the xsd schema files. The snag we're finding is due to an ooxml "file" actually being made up of several different, interlinked xml documents, each in different parts of the zipfile. When, say, opening a new sheet, the process is something like: * figure out what part of the file holds that sheet * get that part of the file * get the input stream from that part * pass the input stream to the factory of the document xmlbean * fetch the root bean of the document, and use that However, when you want to write back out, the xml bean you're holding is a long way from where it needs to go. You have to go from the useful bean back to its parent, figure out what part of the overall file it came from, get that, get an output stream from then, then finally call save. This does seem like rather a lot of objects that you need to keep track of (especially when considering a decent sized ooxml file, with say a core part, half a dozen settings parts, and 5 different sheet parts). What I had been expecting was a way to pass an object defining both getInputStream() and getOutputStream() to the xml beans factory, and have that be used. That way, you could just call save() on the xml bean, and have it know how to get its own outputstream, and so there's then quite a few fewer objects that I need to keep track of. However, I couldn't seem to see anything like that. Is there some other way that I'm missing to be able to easily associate the xmlbean with where it came from, so that writing the bean back out again isn't too much faff? Cheers Nick --------------------------------------------------------------------- To unsubscribe, e-mail: jfarmer@example.com For additional commands, e-mail: jfarmer@example.com From userjfarmer@example.com Fri Jan 04 18:43:33 2008 Return-Path: <userjfarmer@example.com> Delivered-To: jfarmer@example.com Received: (qmail 13484 invoked from network); 4 Jan 2008 18:43:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Jan 2008 18:43:33 -0000 Received: (qmail 34897 invoked by uid 500); 4 Jan 2008 18:43:21 -0000 Delivered-To: jfarmer@example.com Received: (qmail 34868 invoked by uid 500); 4 Jan 2008 18:43:21 -0000 Mailing-List: contact jfarmer@example.com; run by ezmlm Precedence: bulk List-Post: <mailto:jfarmer@example.com> List-Help: <mailto:jfarmer@example.com> List-Unsubscribe: <mailto:jfarmer@example.com> Reply-To: jfarmer@example.com List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list jfarmer@example.com Received: (qmail 34857 invoked by uid 99); 4 Jan 2008 18:43:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2008 10:43:21 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jfarmer@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO repmmg02.bea.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2008 18:43:11 +0000 Received: from repmmr01.bea.com (repmmr01.bea.com [83.161.120.155]) by repmmg02.bea.com (Switch-3.3.0/Switch-3.2.7) with ESMTP id m04Ih1fk008001 for <jfarmer@example.com>; Fri, 4 Jan 2008 10:43:01 -0800 Received: from repbex02.amer.bea.com (repbex02.bea.com [83.161.120.155]) by repmmr01.bea.com (Switch-3.3.0/Switch-3.2.7) with ESMTP id m04IgxbZ011962 for <jfarmer@example.com>; Fri, 4 Jan 2008 10:43:00 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: RE: handling just the Name changes in XSD.. Date: Fri, 4 Jan 2008 10:42:51 -0800 Message-ID: <jfarmer@example.com> In-Reply-To: <jfarmer@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: handling just the Name changes in XSD.. Thread-Index: AchML5kJ4FqdzEVySfeDx6lW+H4QegC0QLHg From: "Cezar Andrei" <jfarmer@example.com> To: <jfarmer@example.com> x-BEA-PMX-Instructions: AV x-BEA-MM: Internal-To-External X-Virus-Checked: Checked by ClamAV on apache.org Dave, You're right XMLBeans doesn't have support for this. Please let us know if you have something for this. Most of the time schemas don't change, and if they do, usually they are backwards compatible. Probably this is why it's not at the top of requests, but definitely it's a useful feature to have. Cezar > -----Original Message----- > From: dave [mailto:jfarmer@example.com] > Sent: Monday, December 31, 2007 10:34 PM > To: jfarmer@example.com > Subject: handling just the Name changes in XSD.. > > > If you change an Element name (for e.g.) in the > schema, you also need to change the Java code > accessing or setting this element. Is there any way we > can avoid changing the Java code in such situations? > Looks like the xsd config file doesn't seem to have > mapping support at this level. > > -D > Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. --------------------------------------------------------------------- To unsubscribe, e-mail: jfarmer@example.com For additional commands, e-mail: jfarmer@example.com From userjfarmer@example.com Fri Jan 04 22:30:21 2008 Return-Path: <userjfarmer@example.com> Delivered-To: jfarmer@example.com Received: (qmail 27304 invoked from network); 4 Jan 2008 22:30:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Jan 2008 22:30:20 -0000 Received: (qmail 80480 invoked by uid 500); 4 Jan 2008 22:30:01 -0000 Delivered-To: jfarmer@example.com Received: (qmail 80463 invoked by uid 500); 4 Jan 2008 22:30:01 -0000 Mailing-List: contact jfarmer@example.com; run by ezmlm Precedence: bulk List-Post: <mailto:jfarmer@example.com> List-Help: <mailto:jfarmer@example.com> List-Unsubscribe: <mailto:jfarmer@example.com> Reply-To: jfarmer@example.com List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list jfarmer@example.com Received: (qmail 80446 invoked by uid 99); 4 Jan 2008 22:30:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2008 14:30:01 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO web38015.mail.mud.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 04 Jan 2008 22:27:10 +0000 Received: (qmail 19572 invoked by uid 60001); 4 Jan 2008 22:27:00 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=KmI+TbqopVCgDoN67EysXTh+7CN2pVGp/DHVt75ym4X5LJCwog+SX+t3sbpYMAEZfK4T1SoNPLEtSCMrTni6cG3xiE7Z6tS814zCw+fQhEV2RXcNZ8pyCFqiQypdK1lgNpSKSwoxgvmm8ynzfTQ/JJaVUnFYCPPnCB32YyErh18=; X-YMail-OSG: 8K5SRkkVM1m8we5rMxFVsw.RIQDvGycY9q5CAA6Ec5wHaah51GT9FT7AjIWyDGR9Lqxw4Kjjn399z_zYY5oeVtrQD7qHAg3NlI7teP2Ch1EHoXgAJ5k0oUDunFYSQg-- Received: from [83.161.120.155] by web38015.mail.mud.yahoo.com via HTTP; Fri, 04 Jan 2008 14:27:00 PST Date: Fri, 4 Jan 2008 14:27:00 -0800 (PST) From: dave <jfarmer@example.com> Subject: RE: handling just the Name changes in XSD.. To: jfarmer@example.com In-Reply-To: <jfarmer@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <jfarmer@example.com> X-Virus-Checked: Checked by ClamAV on apache.org I just started using XmlBeans around 2 weeks ago. One issue I see is during code development phase and alpha releases. There are frequent request from testers to change the Tag names to more meaningful ones. When this happens, you need to change your parsing code as well. That's a pain. thanks -D --- Cezar Andrei <jfarmer@example.com> wrote: > Dave, > > You're right XMLBeans doesn't have support for this. > Please let us know > if you have something for this. > > Most of the time schemas don't change, and if they > do, usually they are > backwards compatible. Probably this is why it's not > at the top of > requests, but definitely it's a useful feature to > have. > > Cezar > > > -----Original Message----- > > From: dave [mailto:jfarmer@example.com] > > Sent: Monday, December 31, 2007 10:34 PM > > To: jfarmer@example.com > > Subject: handling just the Name changes in XSD.. > > > > > > If you change an Element name (for e.g.) in the > > schema, you also need to change the Java code > > accessing or setting this element. Is there any > way we > > can avoid changing the Java code in such > situations? > > Looks like the xsd config file doesn't seem to > have > > mapping support at this level. > > > > -D ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --------------------------------------------------------------------- To unsubscribe, e-mail: jfarmer@example.com For additional commands, e-mail: jfarmer@example.com From userjfarmer@example.com Tue Jan 08 13:00:19 2008 Return-Path: <userjfarmer@example.com> Delivered-To: jfarmer@example.com Received: (qmail 9240 invoked from network); 8 Jan 2008 13:00:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 8 Jan 2008 13:00:18 -0000 Received: (qmail 67744 invoked by uid 500); 8 Jan 2008 13:00:06 -0000 Delivered-To: jfarmer@example.com Received: (qmail 67718 invoked by uid 500); 8 Jan 2008 13:00:06 -0000 Mailing-List: contact jfarmer@example.com; run by ezmlm Precedence: bulk List-Post: <mailto:jfarmer@example.com> List-Help: <mailto:jfarmer@example.com> List-Unsubscribe: <mailto:jfarmer@example.com> Reply-To: jfarmer@example.com List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list jfarmer@example.com Received: (qmail 67707 invoked by uid 99); 8 Jan 2008 13:00:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2008 05:00:06 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jfarmer@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ciao.gmane.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2008 12:59:53 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JCE3N-0004WN-Ua for jfarmer@example.com; Tue, 08 Jan 2008 12:59:37 +0000 Received: from ifgi-farpoint.uni-muenster.de ([83.161.120.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <jfarmer@example.com>; Tue, 08 Jan 2008 12:59:37 +0000 Received: from jtnews by ifgi-farpoint.uni-muenster.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <jfarmer@example.com>; Tue, 08 Jan 2008 12:59:37 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: jfarmer@example.com From: Jan Torben Heuer <jfarmer@example.com> Subject: map namespaces and ignore schemaLocation Date: Tue, 08 Jan 2008 13:59:26 +0100 Lines: 20 Message-ID: <jfarmer@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: jfarmer@example.com X-Gmane-NNTP-Posting-Host: ifgi-farpoint.uni-muenster.de User-Agent: KNode/0.10.5 Sender: news <jfarmer@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, can I map namespaces to another string and ignore the schemaLocation? I have: <import namespace="http://www.opengis.net/swe/1.0.1" schemaLocation="http://schemas.opengis.net/sweCommon/1.0.1/swe.xsd"/> and I want to have: <import namespace="http://www.opengis.net/swe/1.0.0" schemaLocation="http://schemas.opengis.net/sweCommon/1.0.1/swe.xsd"/> I could change the schema, but I'd prefer a general soloution, because it is easier to maintain. Jan --------------------------------------------------------------------- To unsubscribe, e-mail: jfarmer@example.com For additional commands, e-mail: jfarmer@example.com From userjfarmer@example.com Tue Jan 08 18:10:56 2008 Return-Path: <userjfarmer@example.com> Delivered-To: jfarmer@example.com Received: (qmail 2144 invoked from network); 8 Jan 2008 18:10:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 8 Jan 2008 18:10:56 -0000 Received: (qmail 45408 invoked by uid 500); 8 Jan 2008 18:10:44 -0000 Delivered-To: jfarmer@example.com Received: (qmail 45397 invoked by uid 500); 8 Jan 2008 18:10:44 -0000 Mailing-List: contact jfarmer@example.com; run by ezmlm Precedence: bulk List-Post: <mailto:jfarmer@example.com> List-Help: <mailto:jfarmer@example.com> List-Unsubscribe: <mailto:jfarmer@example.com> Reply-To: jfarmer@example.com List-Id: <user.xmlbeans.apache.org> Delivered-To: mailing list jfarmer@example.com Received: (qmail 45386 invoked by uid 99); 8 Jan 2008 18:10:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2008 10:10:44 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jfarmer@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ag-out-0708.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2008 18:10:19 +0000 Received: by ag-out-0708.google.com with SMTP id 8so2247723agc.12 for <jfarmer@example.com>; Tue, 08 Jan 2008 10:10:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=mnwP7OUF9AmT0EPAYLuYF0Zplv8h4Xm7/Wi2UrkHGok=; b=Sg2IQctbNZva6YSUn1OlCNCnp8gsQ4d3uocgEVMbWlnoo1JbzS5Zj8L3d57b1BrUQUT94EG5WDneFh6vU53WZRbIm81/qFvLF1dTyQcY50b8vQkSNGdxHe++oppboJQ8M/f3cYGTjqHF/TJjL7AgNhp9jSWNvv61PMGGywu9baw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=jF1/2tWT2Z55+R3U3EgIN3PoiHhjkf5YnlGEPgp3LGguYbSa2a1p5QPFRKwoiCXQZi2wxRigrkwtI1B8jvHTbY4guwnXQRiaiLq+QgAkAYOBrBblg9YREh62i8TI9UiPBnr4j99hkVRM+g6BMTLUfEA80pjb5Wz+2h7l9xk/7s4= Received: by 83.161.120.155 with SMTP id v7mr402602ybd.26.1199815824035; Tue, 08 Jan 2008 10:10:24 -0800 (PST) Received: by 83.161.120.155 with HTTP; Tue, 8 Jan 2008 10:10:23 -0800 (PST) Message-ID: <jfarmer@example.com> Date: Tue, 8 Jan 2008 10:10:23 -0800 From: "Azfar Kazmi" <jfarmer@example.com> To: jfarmer@example.com Subject: Re: map namespaces and ignore schemaLocation In-Reply-To: <jfarmer@example.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_19024_19975522.1199815824004" References: <jfarmer@example.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_19024_19975522.1199815824004 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sure, you can, using xsdconfig file. See
{'source': 'Apache Software Foundation Public Mail Archives'}