When the subhash is in DB:
When the subhash is not in DB:<?xml version="1.0" encoding="utf-8"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>status</name>
<value>
<string>200 OK</string>
</value>
</member>
<member>
<name>alreadyindb</name>
<value>
<int>1</int>
</value>
</member>
<member>
<name>data</name>
<value>
<struct>
<member>
...
Since in both cases we should be getting a single set of data in the results, doesn't it make sense to remove the lines in red, so the structure of both files becomes identical regarding level of info? This way I could parse the response, no matter what it is, with the same routine.<?xml version="1.0" encoding="utf-8"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>status</name>
<value>
<string>200 OK</string>
</value>
</member>
<member>
<name>alreadyindb</name>
<value>
<int>0</int>
</value>
</member>
<member>
<name>data</name>
<value>
<array>
<data>
<value>
<struct>
<member>
...
The added Value/Array/Data hierarchies are not adding much, since it's been made clear the response will always be for the batch as a whole, and not to individual items...
I'm afraid this can't be changed or compatibility would be broken, but I thought I'd still ask.