What is wrong in my XML structure to add nodes using a RESTFul web service POST? I'm using RESTFul Web Services module with Drupal 7. I can log in with basic authentication, get CSRF-token, get nodes, and so on.

The problem is with POST/PUT: I cannot get adding nodes to work. I get a node of type "page" and I use the same xml structure to do the post. But it doesn't work.

I'm using Delphi RAD Studio 2010 and Indy components to connect with RESTFul service. It works good with all restful request. When I do a POST, I get a 200 OK result, but the page is NOT added.

Here is the XML structure I use:

&lt;node&gt;
&lt;body&gt;
  &lt;value&gt;This is a simple test page&lt;/value&gt;
  &lt;summary/&gt;
  &lt;format&gt;full_html&lt;/format&gt;
&lt;/body&gt;
&lt;type&gt;page&lt;/type&gt;
&lt;title&gt;Test Page&lt;/title&gt;
&lt;language&gt;es&lt;/language&gt;
&lt;status&gt;1&lt;/status&gt;
&lt;promote&gt;0&lt;/promote&gt;
&lt;sticky&gt;0&lt;/sticky&gt;
&lt;views&gt;0&lt;/views&gt;
&lt;day_views&gt;0&lt;/day_views&gt;&lt;/node&gt;


I send csrf-token with post, and server gives me 200 OK.

My question: Where could be the problem, perhaps the XML structure is incorrect?
After a lot of research about my question I've changed to json format, which works fine.

I still think I have an error in my XML structure, but since it works with JSON now, I switched to using that instead.  

UPDATE: With this json data it works fine.

{ "title":"Test page", 
  "type":"page", 
  "status":0, 
  "language":"es", 
  "author":1,
  "body":{  "value": "Aptent bene capto euismod ...",
            "summary":"", 
            "format":"filtered_html"
         }
}