Skip to content

Commit

Permalink
Allow CDATA text
Browse files Browse the repository at this point in the history
We needed to send embedded XML as CDATA in the request.
Without this modification, the embedded XML was escaped, now it is transmitted unmodified.
  • Loading branch information
sysnux authored and mvantellingen committed Nov 3, 2022
1 parent 2f35b7d commit e8fb1e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zeep/xsd/types/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def render(
if value is Nil:
node.set(xsi_ns("nil"), "true")
return
node.text = self.xmlvalue(value)
node.text = value if isinstance(value, etree.CDATA) else self.xmlvalue(value)

def signature(self, schema=None, standalone=True):
return self.get_prefixed_name(schema)
Expand Down

0 comments on commit e8fb1e2

Please sign in to comment.