HTTP-XML input into ZPT
norman <[email protected]> Wed, 1 Nov 2006 21:25:53 +0000 (GMT)
| Newsgroups | gmane.comp.web.zope.page-templates |
|---|---|
| Message-ID | <[email protected]> |
--===============0612835253==
Content-Type: multipart/alternative; boundary="0-159092561-1162416353=:43520"
Content-Transfer-Encoding: 7bit
--0-159092561-1162416353=:43520
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Hello,
What tools are needed to read HTTP-XML generated data from an external si=
te and display this within a ZPT?
I have an output.xml file on a remote server, like:
<?xml version=3D"1.0" encoding=3D"utf-8"?>
<products>
<product>
<id>2</id>
<type>Type</type>
<typedesc>TypeDesc</typedesc>
<name>Name</name>
<shortdesc>shortdesc</shortdesc>
<status>0</status>
<url>http://www.site.com</url>
<thumbnail>2t.jpg</thumbnail>
<image1>2a.jpg</image1>
</product>
....
How to return this in ZPT and format it?
Cheers
Norman
Send instant messages to your online friends http://uk.messenger.yahoo.c=
om=20
--0-159092561-1162416353=:43520
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Hello,<br>What tools are needed to read HTTP-XML generated data from an e=
xternal site and display this within a ZPT?<br><br>I have an output.xml f=
ile on a remote server, like:<br><span class=3D"pi"><span style=3D"font-f=
amily: monospace;"><br></span><?xml version=3D"1.0" encoding=3D"utf-8"=
?></span><br><pre id=3D"line18"><<span class=3D"start-tag">products=
</span>><br> <<span class=3D"start-tag">product</span>><br> =
<<span class=3D"start-tag">id</span>>2</<span class=3D"end-tag">=
id</span>><br> <<span class=3D"start-tag">type</span>>Type<=
;/<span class=3D"end-tag">type</span>><br> <<span class=3D"start=
-tag">typedesc</span>>TypeDesc</<span class=3D"end-tag">typedesc</s=
pan>><br> <<span class=3D"start-tag">name</span>>Name</<sp=
an class=3D"end-tag">name</span>><br> <<span class=3D"start-tag"=
>shortdesc</span>><span class=3D"end-tag">shortdesc</span></<span c=
lass=3D"end-tag">shortdesc</span>><br> <<span
class=3D"start-tag">status</span>>0</<span class=3D"end-tag">statu=
s</span>><br> <<span class=3D"start-tag">url</span>>http://ww=
w.site.com</<span class=3D"end-tag">url</span>><br> <<span cl=
ass=3D"start-tag">thumbnail</span>>2t.jpg</<span class=3D"end-tag">=
thumbnail</span>><br> <<span class=3D"start-tag">image1</span>&g=
t;2a.jpg</<span class=3D"end-tag">image1</span>><br> </<span cl=
ass=3D"end-tag">product</span>><br></pre><span style=3D"font-family: m=
onospace;">....<br><br>How to return this in ZPT and format it?<br><br>Ch=
eers<br><br>Norman<br></span><p> Send instant messages to your online=
friends http://uk.messenger.yahoo.com=20
--0-159092561-1162416353=:43520--
--===============0612835253==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ZPT mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/zpt
--===============0612835253==--