Thank You for reply.

I've got sample schema that i think may be helpful:
https://github.com/ryku123/xsd_cutted_gends/blob/master/xsd/pain_cutted.xsd

And by the way my tryouts here: https://github.com/ryku123/xsd_cutted_gends


Best regards,
Ryku

2016-03-22 23:51 GMT+01:00 Dave Kuhlman <dkuhl...@davekuhlman.org>:

> >
> > Hi Dave,
> >
> > I would like to build XML's on the base of given schema (using all
> validation rules that this xsd provides) then add some custom rules for
> certain tags etc..
> > My demo project is here: https://github.com/ryku123/xsd_playground
>
> Ryku,
>
> Thank you for your report.
>
> I'm trying to work through your issues.
>
> I'm creating a small test schema so as to try to reproduce the
> errors you have reported.
>
> First, I'm trying to reproduce the following error:
>
> > Some tags (a lot) are mapped into somethign like this (None objects):
> >
> >  def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
> >         if nodeName_ == 'Nm':
> >             obj_ = None
> >             self.Nm = obj_
> >             obj_.original_tagname_ = 'Nm'
> >             # validate type Max70Text
> >             self.validate_Max70Text(self.Nm)
> >
> > I have a really hard time figuring out how to make them for
> > example to be treated as string by default or to apply any other
> > workaround that will keep validation rules from xsd as well.
>
> You are right, I believe.  The generated line above that reads
> "obj_ = None" is wrong.  I'm guessing that it should be something like
> "Nm_ = child_.text".
>
> I'll keep working to figure out what is the difference between my
> test schema and your schema and why generateDS.py is producing that
> bad code.  My test schema is producing the correct code, whereas
> when I use your schema, it produces erroneous code similar to what
> you have reported.
>
> I'll keep working to figure out what is making the difference.
>
> Thank you for providing your schemas.  That has and will be very
> helpful.
>
> I'll report back when I find something.
>
> Dave
>
>
>
> --
>
> Dave Kuhlman
> http://www.davekuhlman.org
>
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to