-4

PYXB - 在运行时生成类定义时,我面临以下期望

import pyxb.binding.generate

path = "E:/schema/schema.xsd"
code = pyxb.binding.generate.GeneratePython(schema_location=path)
rv = compile(code, 'test', 'exec')
xsd = eval(rv)

上面的代码给出了这个错误

raise pyxb.BindingGenerationError('Generation of namespace groups requires generate-to-files')
pyxb.exceptions_.BindingGenerationError: Generation of namespace groups requires generate-to-file
4

1 回答 1

0

请参阅PyXB 帮助论坛,其中有人巧合地同时提出了完全相同的问题。奇怪的。

于 2014-10-09T00:10:07.047 回答