Hi,
I'm very new to drupal services and I've been trying to use the rest_server module and it seems to work pretty well for my purposes (just getting the data out rather than putting it in). I'm now getting to the point where I'd like to be able to add attributes to the xml elements in the response, but I'd like these to be extensible to other server modules if possible (so i'd like to do it in my service module rather than implement a new server.
I'd like to get a response along these lines with attributes embedded within the element tags (see xml code below). Does this make sense to anybody, or am I on completely the wrong track and should I do this as a specific server (the difficulty is the attributes actually relate to the data being served, not the way in which it's being served).
<?xml version="1.0" encoding="utf-8" ?>
<response success="true"><conceptSet searchTerm="Abies alba">
<concept dataSchemaConcept="DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/HigherTaxa/HigherTaxon/HigherTaxonName">
<name id="106415" relationtype="" id2="" name=""><![CDATA[Abies alba@authorMill.]]></name>
<status><![CDATA[accepted]]></status>
<reference id="500000"><![CDATA[Euro+Med preliminary checklist as merged from Flora Europaea, Med-Checklist and Flora of Macaronesia (for families not yet treated in Med-Checklist, the distributional record does not include N Africa and SW Asia)..]]></reference>
</concept>
<concept dataSchemaConcept="DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/HigherTaxa/HigherTaxon/HigherTaxonName">
<name id="106415" relationtype="" id2="" name=""><![CDATA[Abies alba@authorMill.]]></name>
<status><![CDATA[accepted]]></status>
<reference id="7500000"><![CDATA[Jury 2005.]]></reference>
</concept>
</conceptSet>
</response>Let me know if it'd be better to post this elsewhere.
thanks,
Kehan