I'm working to write a simple article editor which will be used with a CMS system which offers an Atom API to add/edit articles. To communicate with the CMS, I am using the Apache Abdera library. But I'm running into a problem with character encoding. The data sent to the CMS will be encoded like this:
<entry>
<content xmlns:vdf="http://www.vizrt.com/types" type="xml">
<vdf:payload>
<vdf:field name="body">
<vdf:value><div xmlns="http://www.w3.org/1999/xhtml"><p>Text comes here</p></div></vdf:value>
</vdf:field>
</vdf:payload>
</content>
</entry>
But the CMS system requires this:
<entry>
<content xmlns:vdf="http://www.vizrt.com/types" type="xml">
<vdf:payload>
<vdf:field name="body">
<vdf:value><div xmlns="http://www.w3.org/1999/xhtml"><p>Text comes here</p></div></vdf:value>
</vdf:field>
</vdf:payload>
</content>
</entry>
In other words, no character escaping. Does anyone know how this can be achieved using Apache Abdera?