Skip to content Skip to sidebar Skip to footer

Pyxb Unrecognizeddomrootnodeerror

i've got the following xml schema:

Solution 1:

Your schema defines a top-level complex type named DataPackage, but does not define any top-level elements. Thus the DOM element DataPackage has no corresponding element that PyXB can use to process it.

You need to add something like:

<element name="DataPackage"type="DataPackage"/>

Note that in XML Schema the namespaces for elements and types are distinct, but in Python they are not, so PyXB will rename one of them (the complex type in this case) to avoid the conflict. See http://pyxb.sourceforge.net/arch_binding.html?highlight=conflict#deconflicting-names

Post a Comment for "Pyxb Unrecognizeddomrootnodeerror"