Hola a todos,
tengo que crear un XML para mandarlo a un servicio SOAP.

Me gustarĂ­a saber como hacer estos elementos del XML con cElementTree .
<user xsi:type="xsd:string">xxxx</user>
<pass xsi:type="xsd:string">xxxx</pass>

He intentado esto pero no sirve :P

cElementTree.SubElement(body, "user", attrib={'xsi:type':
'xsd:string'}).text = "USER"


Un Saludo.
_______________________________________________
Python-es mailing list
Python-es@python.org
https://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/

Responder a