Florian,

Good to hear from you.

I generated bindings from your schema (apitest.xsd).  In the resulting
module there are methods get_child1, set_child1, get_child2, set_child2.
But there is no add_child1 or add_child2.  That indicates that child1
and child2 are not being treated as lists.

So, if I understand your problem correctly, I am not able to reproduce
the issue that you describe.

I'm using generateDS.py version 2.25a, and I can suggest that you
try that version.  But I don't know of any changes since version
2.24a (your version) that would have fixed this.

I've attached the module that I generated to a separate email, so as to
not send too much bulk to other list members' in-boxes.  You can look
near the top of that file to see what command line options I used.

If there is something else I can try, or there is something that I'm
missing and not understanding about this, please point that out to me.

Dave

On Fri, Apr 21, 2017 at 01:51:22PM +0000, Florian Wilmshoever wrote:
> Hi Dave, hi all,
> I recently upgrade my generateDS from 2.19b to 2.24a.  When using the
> newly generated API I noticed some incompatibilities with my existing
> application, namely some child elements(child1 or child2) defined
> under a parent(nonroot), which in turn is defined in an unbounded
> sequence here.
> The used schema is attached.
> 
> My actual problem now is, that I get list objects in the resulting api
> bindings for child1 and child2, although I would only expect the
> 'nonroot' element to be rendered as a list. If you remove the
> maxOccurs='unbounded' from the sequence above the 'nonroot' element in
> the example schema, child1 and child2 get rendered as single instance
> objects, as expected. From what I can tell this was also the behavior
> in version 2.19b.
> 
> Is that change actually intended behavior or maybe some form of a
> bug/inconsistency? It seems especially weird to me as the 'suspect'
> element does not show that same behavior.
> Just let me know if somebody else experienced that problem or if I'm
> just using it wrong.
> 
> Best Regards
> Florian
> 

-- 

Dave Kuhlman
http://www.davekuhlman.org

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to