Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > weather xml View modes: 
User avatar
Member
Member
lwhittemore-emh - 6/25/2013 5:58:32 PM
   
weather xml
I have an xml datasource to pull weather from yahoo. How would I set up my transformation to pull info from this item from the xml

<yweather:condition text="Mostly Cloudy" code="28" temp="79" date="Tue, 25 Jun 2013 5:52 pm EDT"/>


For example in my transformation how would I write the eval to get the code number?

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 6/26/2013 12:52:02 AM
   
RE:weather xml
Hi,

Could you try this:

<%# EvalCDATA("code") %>


I"m not really sure about XML, but it should be ok. Let me know how that works.

Kind regards,
Richard Sustek

User avatar
Member
Member
lwhittemore-emh - 6/26/2013 8:08:39 AM
   
RE:weather xml
I did not have any luck with that. I found this post http://devnet.kentico.com/Forums.aspx?forumid=68&threadid=37702 that leads me to believe that what I am trying to do cannot be done with the xml data source and basic repeater.

Thanks for your help.

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 7/9/2013 10:21:11 PM
   
RE:weather xml
Hi,

We are sorry for the delayed answer.

I am to believe now that this really is not possible - not without your own parsing of the xml.

Kind regards,
Richard Sustek