Closed pzienowicz closed 7 years ago
I don't know of any way with the current API.
Looks like it's possible with XMLSerializer though, so it should be possible to add: https://developer.android.com/reference/org/xmlpull/v1/XmlSerializer.html#cdsect(java.lang.String)
Could you provide me any example? How can I use it with com.alexgilleran.icesoap.envelope.impl.BaseSOAP11Envelope?
I think you could create a XMLCDataNode
class that extends XMLTextNode
, and override serializeContent to use XMLSerializer.cdsect(getValue()) instead of XMLSerializer.text
. Then you could add it to any existing envelope or XMLNode with addElement
Works like a charm. Thank you @AlexGilleran!
Yay! No worries :)
Hi,
Is there any way to send eg. html code in CDATA tag? When I add text node like this: `<![CDATA[
The problem is:
<![CDATA[ ]]>
is displaying like<![CDATA[ and ]]>
Thanks!