|
Posted by Gary Quiring on 05/17/05 16:34
On Tue, 17 May 2005 14:24:19 +0100, "Alistair Baillie SS2002"
<abaillie@cis.strath.ac.uk> wrote:
>You just echo it out to the browser like that, and send the XML content
>header.
>
>(Or save it into a variable, for storing into a file)
>
>eg:
>
><?php
>header("Content-type: text/xml");
>echo "
><response>\n
> <data>\n
> <parts>\n
> <part>\n
> <number>bla</number>\n
> </part>\n
> </parts>\n
> </data>\n
></response>";
>?>
>
My output string will vary on the input I need to respond to. That kind of
creation makes it difficult to modify and add childs.
Navigation:
[Reply to this message]
|