Skip to content

Commit e8fb1e2

Browse files
sysnuxmvantellingen
authored andcommitted
Allow CDATA text
We needed to send embedded XML as CDATA in the request. Without this modification, the embedded XML was escaped, now it is transmitted unmodified.
1 parent 2f35b7d commit e8fb1e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/zeep/xsd/types/simple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def render(
9393
if value is Nil:
9494
node.set(xsi_ns("nil"), "true")
9595
return
96-
node.text = self.xmlvalue(value)
96+
node.text = value if isinstance(value, etree.CDATA) else self.xmlvalue(value)
9797

9898
def signature(self, schema=None, standalone=True):
9999
return self.get_prefixed_name(schema)

0 commit comments

Comments
 (0)