Get the document root. For I{document/literal}, this is the name of the wrapper element qualifed by the schema tns. @param wrapper: The method name. @type wrapper: L{xsd.sxbase.SchemaObject} @return: A root element. @rtype: L{Element}
(self, wrapper)
| 78 | return body.children |
| 79 | |
| 80 | def document(self, wrapper): |
| 81 | """ |
| 82 | Get the document root. For I{document/literal}, this is the |
| 83 | name of the wrapper element qualifed by the schema tns. |
| 84 | @param wrapper: The method name. |
| 85 | @type wrapper: L{xsd.sxbase.SchemaObject} |
| 86 | @return: A root element. |
| 87 | @rtype: L{Element} |
| 88 | """ |
| 89 | tag = wrapper[1].name |
| 90 | ns = wrapper[1].namespace('ns0') |
| 91 | d = Element(tag, ns=ns) |
| 92 | return d |
| 93 | |
| 94 | def mkparam(self, method, pdef, object): |
| 95 | # |
no test coverage detected