Creating XML sequences with zeep / python
问题 I am using zeep (Python 3.6) to interface with a SOAP API, and working with a WSDL schema which contains this section: <xs:element name="passengers"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="passenger" type="com:PassengerType"/> </xs:sequence> </xs:complexType> </xs:element> So I'd like my zeep-generated XML to look like this: <book:passengers> <book:passenger> ...redacted... </book:passenger> </book:passengers> My first attempt at achieving this with Zeep looked