Hi All,
I have been using generateDS to parse a large schema, but have found issues
running the output when lxml is not available - to force this, I have commented
out the try/except tree at the beginning so that the only import is:
import xml.etree.ElementTree as etree_
XMLParser_import_library = XMLParser_import_elementtree
However, it looks like it depends Element.nsmap, which appears to be an
lxml-construct. I get, during parsing:
File "proj/parsers/bpmn/schema.py", line 19405, in parseString
rootObj.build(rootNode)
File "proj/parsers/bpmn/schema.py", line 907, in build
self.buildChildren(child, node, nodeName_)
File "proj/parsers/bpmn/schema.py", line 1045, in buildChildren
obj_.build(child_)
File "proj/parsers/bpmn/schema.py", line 16956, in build
self.buildAttributes(node, node.attrib, already_processed)
File "proj/parsers/bpmn/schema.py", line 16988, in buildAttributes
super(tProcess, self).buildAttributes(node, attrs, already_processed)
File "proj/parsers/bpmn/schema.py", line 14178, in buildAttributes
value = find_attr_value_('xsi:type', node)
File "proj/parsers/bpmn/schema.py", line 462, in find_attr_value_
namespace = node.nsmap.get(prefix)
AttributeError: 'Element' object has no attribute 'nsmap'
How can I work around this issue? I'm running on IronPython, so lxml is not
available.
Thanks,
Nick
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
generateds-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/generateds-users