Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 66300 invoked from network); 12 Apr 2002 02:58:47 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Apr 2002 02:58:47 -0000 Received: (qmail 21719 invoked by uid 97); 12 Apr 2002 02:58:54 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 21702 invoked by uid 97); 12 Apr 2002 02:58:54 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 21691 invoked from network); 12 Apr 2002 02:58:53 -0000 Message-ID: <009f01c1e1cd$37ac5270$9865fea9@spiritsoft.com> From: "James Strachan" To: "Jakarta Commons Developers List" References: <458473676F1AC74A84EAB2F22004DA6D2A0071@mail.nextance.com> <3CB14326.2010800@topicus.nl> <005901c1df62$81b38720$becb8842@galina> <1db301c1df79$2f6e9e20$9865fea9@spiritsoft.com> <008301c1e0fa$7c9267e0$0c91fea9@galina> Subject: Re: [Question] Betwix & JAXB Date: Fri, 12 Apr 2002 03:53:25 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N From: "Ivelin Ivanov" > > Hi James, > > Thanks for the detailed response. > > Yes, choice is healthy. > > I will hope however that the coices stay limited to 1 or 2 alternatives. > More than that, it will almost sound like waste of brain. > > I am very happy with JXPath and therefore I would think that Betwix is the > tool I'd use for marshaling in future. FWIW I have nothing to do with JXPath at all - thats Dmitri's baby. I work on Jaxen instead (I did try bring Dmitri to the Jaxen-party but he preferred to go his own way). http://jaxen.org Jaxen is an XPath 1.0 conformant XPath engine which works on all popular XML models. Its the primary XPath engine used by the dom4j, EXML and JDOM communities. Also DOM users use it, for example David Megginson included Jaxen for DOM XPath support in the Reuters NewsML toolkit. > What I really appreciate about JXPath is that it is quite smart about auto > handling mapping for various types. Though picking a good default mapping is one thing; however there are various ways to do it and sometimes developers want to specify this explicitly - thats where betwixt comes in. e.g. for a Map Map map = new HashMap(); map.put( "a", "1234" ); map.put( "b", "5678" ); how should this look as XML? e.g. 1234 5678 Or 1234 5678> Or even a 1234 b 5678 > An inconvenience of Castor is that it's virtually useless without explicit > mapping. > If Betwix is going to be a lot more transparent and not require mapping for > most cases, I'd certainly enjoy it. Cool > BTW, when mapping is not provided, how does betwix handle circular > references during marshaling? Xlink? Robert added support for handling of circular references. Right now it outputs unique IDs and uses HREF attributes to refer to previously serialized objects. James -- To unsubscribe, e-mail: For additional commands, e-mail: