Initial instance

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Initial instance

frohiky
Hello.

I'm trying to populate a new instance of a form using the method:

"As an HTML form POST parameter called fr-form-data"

Using a form like:

"<form method="post" action="/path/to/new">
    <input type="hidden" name="fr-form-data" value="Base64-encoded XML"/>
</form>"


The form is giving a "Content not allowed in prolog"....

Is this due to the xml format?
What is the xml format we should encode in base64?

Tks, Pedro Leite
Reply | Threaded
Open this post in threaded view
|

Re: Initial instance

Erik Bruchez
Administrator
That error is an XML parser error. It means the parser found something
that didn't look like XML, so that's even before the question of
generating the correct XML format for Form Runner. Is the
Base64-encoding done properly? Can you run a Base64 decode on the
value?

-Erik

On Thu, Jul 5, 2012 at 11:07 AM, frohiky <[hidden email]> wrote:

> Hello.
>
> I'm trying to populate a new instance of a form using the method:
>
> "As an HTML form POST parameter called fr-form-data"
>
> Using a form like:
>
> "<form method="post" action="/path/to/new">
>     <input type="hidden" name="fr-form-data" value="Base64-encoded XML"/>
> </form>"
>
>
> The form is giving a "Content not allowed in prolog"....
>
> Is this due to the xml format?
> What is the xml format we should encode in base64?
>
> Tks, Pedro Leite
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Initial-instance-tp4655431.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws