[Zope] parsing dynamic XML

Ken firerooster@netscape.net
Wed, 25 Sep 2002 19:26:51 +0200 (CEST)


[ Sushil Bhattarai]HI
> 
> Is there a way to parse a dynamic XML document in Zope. I'm 
> calling a web service from zope. This web service returns 
> XML. I want to parse this XML and put certain values in 
> session. How can I parse XML I'm getting without physically 
> saving it in Zope. By the way, can I dynamically save this 
> XML in zope. I have XMLDocument and ParsedXML product but 
> can't figure out a way to use these to solve my problem

Sounds like you have an URL returning XML.

Parse with KebasData (doesn't care if XML contains illegal characters or is poorly formed).

To save in Zope just iterate over the add method of a your favorite product using 'match' values for the needed properties.

Ken