mabz
10-30-2009, 12:43 AM
Hi,
First post and really I am after the best approach for providing a web service that delivers some html content so that who ever requests it does not think 'Why the bloody hell did he do it that way?'.
Unfortunatley i am delivering out of a database some, at times, pretty random html.
The two ways so far that I have are...
<?xml version='1.0'encoding="utf-8" standalone="no"?>
<transaction type=”news_items” version=”1.0”>
<id>1468</id>
<response>
<item><![CDATA[ <strong>Quote for the Week</strong><br /><br />"I need her, River is my purpose ... and I will gather her to me, whatever else happens is incidental in the greater scheme".<br /><br />Serenity ]]> </item>
</response>
</transaction>
and...
<?xml version='1.0' encoding="utf-8" standalone="no"?>
<transaction type=”news_items” version=”1.0”>
<id>1468</id>
<response>
<item>
<strong>Quote for the Week</strong><br /><br />"I need her, River is my purpose ... and I will gather her to me, whatever else happens is incidental in the greater scheme".<br /><br />Serenity
</item>
</response>
</transaction>
What is preferable for the requester to process or are there better alternatives? (not matter what technology they are using)
Cheers
First post and really I am after the best approach for providing a web service that delivers some html content so that who ever requests it does not think 'Why the bloody hell did he do it that way?'.
Unfortunatley i am delivering out of a database some, at times, pretty random html.
The two ways so far that I have are...
<?xml version='1.0'encoding="utf-8" standalone="no"?>
<transaction type=”news_items” version=”1.0”>
<id>1468</id>
<response>
<item><![CDATA[ <strong>Quote for the Week</strong><br /><br />"I need her, River is my purpose ... and I will gather her to me, whatever else happens is incidental in the greater scheme".<br /><br />Serenity ]]> </item>
</response>
</transaction>
and...
<?xml version='1.0' encoding="utf-8" standalone="no"?>
<transaction type=”news_items” version=”1.0”>
<id>1468</id>
<response>
<item>
<strong>Quote for the Week</strong><br /><br />"I need her, River is my purpose ... and I will gather her to me, whatever else happens is incidental in the greater scheme".<br /><br />Serenity
</item>
</response>
</transaction>
What is preferable for the requester to process or are there better alternatives? (not matter what technology they are using)
Cheers