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>&lt;?xml version=3D"1.0" encoding=3D"utf-8"=
?&gt;</span><br><pre id=3D"line18">&lt;<span class=3D"start-tag">products=
</span>&gt;<br>  &lt;<span class=3D"start-tag">product</span>&gt;<br>    =
&lt;<span class=3D"start-tag">id</span>&gt;2&lt;/<span class=3D"end-tag">=
id</span>&gt;<br>    &lt;<span class=3D"start-tag">type</span>&gt;Type&lt=
;/<span class=3D"end-tag">type</span>&gt;<br>    &lt;<span class=3D"start=
-tag">typedesc</span>&gt;TypeDesc&lt;/<span class=3D"end-tag">typedesc</s=
pan>&gt;<br>    &lt;<span class=3D"start-tag">name</span>&gt;Name&lt;/<sp=
an class=3D"end-tag">name</span>&gt;<br>    &lt;<span class=3D"start-tag"=
>shortdesc</span>&gt;<span class=3D"end-tag">shortdesc</span>&lt;/<span c=
lass=3D"end-tag">shortdesc</span>&gt;<br>    &lt;<span
 class=3D"start-tag">status</span>&gt;0&lt;/<span class=3D"end-tag">statu=
s</span>&gt;<br>    &lt;<span class=3D"start-tag">url</span>&gt;http://ww=
w.site.com&lt;/<span class=3D"end-tag">url</span>&gt;<br>    &lt;<span cl=
ass=3D"start-tag">thumbnail</span>&gt;2t.jpg&lt;/<span class=3D"end-tag">=
thumbnail</span>&gt;<br>    &lt;<span class=3D"start-tag">image1</span>&g=
t;2a.jpg&lt;/<span class=3D"end-tag">image1</span>&gt;<br>  &lt;/<span cl=
ass=3D"end-tag">product</span>&gt;<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>&#32;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==--