>From: Frank Liauw

>Sent: Thursday, June 16, 2011 12:38 AM
>
> I used generateDS to generate the data structure from a XSD with a
> simple integer type.
> 
> However, when I run the generated data structure on a XML document
> using the schema, the following error occured:
> 
>     AttributeError: type object 'int' has no attribute 'factory'
> 
> Looking into the generated python code, it seems like the method
> buildChildren calls on the factory() method on the type of the
> child, which in this case is of integer type.
> 
> Is this normal? 

Frank -

No, that's an error.  Could you send me the schema (.xsd) and the
XML instance doc (.xml) so that I can reproduce it.

Thanks for help and for letting me know about this.

By the way, what version of generateDS.py are you using?  To find
out, run:

    $ generateDS.py --version

The current, latest version is 2.5a.

- Dave
 

 
-- 


Dave Kuhlman
http://www.rexx.com/~dkuhlman

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to