W3C home > Mailing lists > Public > public-xsd-databinding@w3.org > April 2006

Re: xs:choice support

From: Ed Day <edday@obj-sys.com>
Date: Tue, 4 Apr 2006 14:14:57 -0500
Message-ID: <063401c6581c$11a03b40$4800000a@objsys1>
To: "George Cowe" <gcowe@origoservices.com>, <public-xsd-databinding@w3.org>
I have seen this mentioned as a limitation in some binding products and, quite frankly, I don't understand it.  In general, all a binder needs to do is examine the start tag of the element and it can determine the contents.  It can then use something like a union type in C to hold the different alternatives or a base class with generated derived classes in an OO language.  It shouldn't be that hard to do.

I would hope the group does not add something to their document that discourages the use of the choice type as it is useful and widely used.  

Regards, 

Ed Day
Objective Systems, Inc.
http://www.obj-sys.com


  ----- Original Message ----- 
  From: George Cowe 
  To: public-xsd-databinding@w3.org 
  Sent: Tuesday, April 04, 2006 8:28 AM
  Subject: xs:choice support


  There seem to be some tools that do not support <xs:choice> very well with respect to databinding.

   

  I have used Apache Axis 1.3 to generate web service implementation code from WSDL. The generated code simply supported the first option in the choice and ignored the rest!

   

  Has anyone else had similar problems? 

   

  George

   
Received on Tuesday, 4 April 2006 18:15:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 18:20:37 GMT