One would expect that:

     <gsx:fieldname>Content &lt;form&lt; </gsx:fieldname>

ought to do the trick, since &lt; and &gt; are one of the 5 pre-declared
entities which XML recognises.  Those &#39; in the 400 status text are
apostrophes (single quotes) - how are they getting there?

I suppose if one got desperate, one could try:

     <gsx:fieldname><![CDATA[Content <form> ]]></gsx:fieldname>

Please let us know how you get on.  Are you using an existing library to
construct the HTTP request?  Which one?

regards,
David.

On Sat, Apr 16, 2011 at 5:52 AM, nakvic <[email protected]>wrote:

> How to post a record to a gdocs spreadsheet with the filed that
> contains characters like < > (i.e. &lt; &gt;).
> A following post fails with "Bad Request. Content: [Line 1, Column
> 797, element gsx:note] Unrecognized element &#39;form&#39;".
>
>  <entry gd:etag='"AxQDSXxjfyp7ImA0ChJVSBI."'>
>    <id>https://spreadsheets.google.com/feeds/list/key/worksheetId/
> private/full/rowId</id>
>    <updated>2006-11-17T18:23:45.173Z</updated>
>    <category scheme="http://schemas.google.com/spreadsheets/2006";
>      term="http://schemas.google.com/spreadsheets/2006#list"/>
>
>    .....
>
>    <gsx:fieldname>Content <form> </gsx:fieldname>
>  </entry>
>
> I've tried whatever possible to escape <>. Nothing works.
>
> How to post the symbols like these?
>
> Regards,
> Victor

Reply via email to