norman wrote:
> Hello,
> What tools are needed to read HTTP-XML generated data from an external
> site and display this within a ZPT?
>
> I have an output.xml file on a remote server, like:
>
> <?xml version="1.0" encoding="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.com
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://mail.zope.org/mailman/listinfo/zpt
>   
There is a Zope product called ParsedXML.  Don't know much more than
that about it.  You could always go the external method route, use
xml.dom.minidom to parse it into something python-ish like a
dictionary.  minidom is pretty straightforward.

Regards,

Jeff.

-- 
+---------------------------------------------------------------------+
|  Jeffrey D Peterson   /   Web Programmer   \   Information Systems  |
+---------------------------------------------------------------------+
|   _____                    ____        __         __      _         |
|  / ___/______ _______ __  /  _/__  ___/ /_ _____ / /_____(_)__ ___  |
| / /__/ __/ _ `/ __/ // / _/ // _ \/ _  / // (_-</ __/ __/ / -_|_-<  |
| \___/_/  \_,_/_/  \_, / /___/_//_/\_,_/\_,_/___/\__/_/ /_/\__/___/  |
|                  /___/                                              |
+---------------------------------------------------------------------+

_______________________________________________
ZPT mailing list
ZPT@zope.org
http://mail.zope.org/mailman/listinfo/zpt

Reply via email to