Sending XML in a form

Sending XML in a form

Hi,

I'm new to sending information to Zoho.

I am testing a html page to update a Zoho form.

Here is the form I'm using:

<form method="POST" id ="foo" action="https://creator.zoho.com/api/xml/write" >
 <input type="hidden" name ="authtoken" value="my token">
 <input type="hidden" name ="scope" id="scope" value="creatorapi">
 <textarea name="XMLString" >
  <ZohoCreator>
    <applicationlist>
        <application name='App'>
            <formlist>
                <form name='Test'>
                    <update>
                        <criteria>
                            <![CDATA[(Name == "Pam")]]>
                        </criteria>
                        <newvalues>
                            <field name='Name1'><value>Bernard</value></field>
                        </newvalues>
                    </update>
                </form>
            </formlist>
        </application>
    </applicationlist>
</ZohoCreator>
</textarea>
<input type="hidden" name="zc_ownername" value="sample">
<input type="submit" value="Update Record">
</form>


I get the response:

<response><result><form name="Test"><update>
                        <criteria>
                            <![CDATA[(Name == "Pam")]]>
                        </criteria>
                        <newvalues>
                            <field name="Name"><value>Bernard</value></field>
                        </newvalues>
                    <status>Failure, Invalid or null criteria specified</status></update></form></result></response>


It is a Test form set up with 3 records and I know the criteria (Name == "Pam") is valid.

Can someone help?

Thanks,

Guy