submission and XML

Posted by Bryan on
URL: https://discuss.orbeon.com/submission-and-XML-tp1577228.html

if I have an instance (my actual instance is much more complicated that this example):

<xforms:instance id="my-instance">
    <foo><bar>some data</bar></foo>
</xforms:instance>

How do i submit that data to my spring controller so that it would reload the page and i should be able to get the xml instance via request.getParameter?

I tried all combination of attributes in the xforms:submission and the closest i got was this:

<xforms:submission id="my-submission"                      
                       action="/xforms/mycontroller.gs?data={instance('my-instance')}"
                       method="post" replace="all"/>

when i do request.getParameter('data') in my controller,  i get some data but not in XML form.