When using generateDS v. 2.10b with lxml 2.3.5 and the option --export="etree" <xsdfile>, there is no way at specify default namespace prefix.
I do know of etree.register_namespace('prefix', 'namespace'), but with lxml 2.3.5 it is not possible to set prefix to '', and setting it to None result in the prefix = 'None'. for now I just hard coded my nsmap = { None: 'http://namespace'} on the line with : element = etree_.Element(...) within the : def to_etree(...) line. If there is another way set the namespace prefix to nothing, it might be a better solution than to add nsmap to the code. --- Kenneth ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users