submitting non-xml content
Posted by
patrick on
Jan 28, 2011; 4:22pm
URL: https://discuss.orbeon.com/submitting-non-xml-content-tp3244844.html
hi
i can't get get to submit text content, i have this:
<xforms:submission id="generate" ref="xxforms:instance('instancep')"
method="post" resource="
http://example.com"
xxforms:username="test" xxforms:password="test"
replace="text" targetref="xxforms:instance('fr-form-instance')/myvalue"
mediatype="text/plain" omit-xml-declaration="true" >
<xforms:header >
<xforms:instance id="instancep">
<test xmlns="">
myvalue
</test>
</xforms:instance>
but when i do the post, content type is "text/plain" BUT it sends:
<test xmlns:f="
http://orbeon.org/oxf/xml/formatting" xmlns:xxi="
http://orbeon.org/oxf/xml/xinclude" xmlns:ev="
http://www.w3.org/2001/xml-events">my value\n</test>
How can i get to send only the text value of this (ie. "my value")??
i've read in wiki orbeon doc to use serialization="text/plain" but this does not work!
PLEASE HELP, THANKS!!